[lkml]   [2008]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH -v2] Smack: Integrate with Audit

    --- Stephen Smalley <> wrote:

    > On Wed, 2008-03-12 at 04:44 +0200, Ahmed S. Darwish wrote:
    > > Hi!,
    > >
    > > Setup the new Audit hooks for Smack. The AUDIT_SUBJ_USER and
    > > AUDIT_OBJ_USER SELinux flags are recycled to avoid `auditd'
    > > userspace modifications. Smack only needs auditing on
    > > a subject/object bases, so those flags were enough.
    > Only question I have is whether audit folks are ok with reuse of the
    > flags in this manner, and whether the _USER flag is best suited for this
    > purpose if you are going to reuse an existing flag (since Smack label
    > seems more like a SELinux type than a SELinux user).

    To-mate-o toe-maht-o.

    There really doesn't seem to be any real reason to create a new
    flag just because the granularity is different. The choice between
    _USER and _TYPE (and _ROLE for that matter) is arbitrary from a
    functional point of view. I say that since Smack has users, but
    not types or roles, _USER makes the most sense.

    > Certainly will confuse matters if a user has audit filters on SELinux
    > users in their /etc/audit/audit.rules and then boots a kernel with Smack
    > enabled.

    Somehow I doubt that will be their biggest concern.

    Casey Schaufler

     \ /
      Last update: 2008-03-12 16:43    [W:0.020 / U:38.132 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site