Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Mandatory Access Control Kernel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Casey Schaufler
Date: Monday, October 8, 2007 - 10:31 am

--- "Serge E. Hallyn" <serge@hallyn.com> wrote:


I'm not sure how seriously anyone ought to take what I'm about to
outline. Please feel free to treat it with as much or as little
reverence as you choose.

How to implement SELinux starting from Smack.

You'll need to break up the current rwxa accesses into a set
that matches the current SELinux set. Assign each a letter and
a "MAY_ACTION" #define.

You'll need a mapping for domain transitions, something like:

     subject-label program-label new-subject-label

This will require bprm hooks that aren't there now.

Additional hooks will need to be filled out as Smack does not
add access control to things that aren't objects or actions that
aren't accesses. Treat these as if they are accesses to objects
and there shouldn't be too much trouble.

Do something about the linear search for subject/object label pairs.
With the larger label set searching will become an issue.

Audit integration, too. The networking code will require some work
for ipsec. The interfaces are pretty clean, Smack isn't using it
because the CIPSO interface is simpler, not because there's any
real problem with it.

I wouldn't expect the whole thing to be more than a couple week's
work for someone who really wanted to do it.


Casey Schaufler
casey@schaufler-ca.com
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Christoph Hellwig, (Sun Sep 30, 2:53 am)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Eric W. Biederman, (Mon Oct 8, 10:20 am)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Casey Schaufler, (Mon Oct 8, 10:31 am)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Eric W. Biederman, (Mon Oct 8, 11:47 am)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Eric W. Biederman, (Mon Oct 8, 12:29 pm)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Eric W. Biederman, (Mon Oct 8, 12:50 pm)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Eric W. Biederman, (Wed Oct 10, 6:48 am)
Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Manda ..., Kazuki Omo(Company), (Mon Oct 29, 9:01 pm)