login
Header Space

 
 

Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Wilcox <matthew@...>
Cc: Tetsuo Handa <penguin-kernel@...>, <paul.moore@...>, <akpm@...>, <linux-kernel@...>, <linux-security-module@...>, <takedakn@...>, <linux-fsdevel@...>, <netdev@...>
Date: Monday, April 14, 2008 - 11:21 pm

Matthew Wilcox wrote:
That's not true. Both AppArmor and SELinux Targeted Policy address 
confinement of both root and non-root applications. Examples:

    * Confining even non-root applications keeps them from accessing
      world and group accessible files.
    * Many services run as nobody instead of root, and smarter ones
      create themselves a new UID to run as. Even so, confining them is
      useful because the least-privilege posture is much easier to
      specify and verify in a capability model (as SELinux and AppArmor
      are) than an ACL model (as permission bits on files are).
    * You may want to confine a desktop application. E.g. Pidgin is a
      great IM tool because it speaks so many protocols, but with that
      large functionality comes a large attack surface, and it has had
      vulnerabilities from time to time. A confined IM client can be
      configured to only have access to your IM files, and not e.g. your
      SSH private keys.


Controlled overlap. You can use AppArmor to confine every *individual* 
piece of a web site shopping cart, and yet they still can interact with 
each other by sharing files. You cannot do that with namespaces.

Conversely, it is very convenient to use namespaces to set up private 
virtual domains, and that is not at all convenient to do with AppArmor, 
TOMOYO, or SELinux.

The correct answer is to use namespaces for total isolation (virtual 
domain hosting) and LSM confinement tools for security within a virtual 
domain.

Not true. Ease of management of access control is about the security 
model. Cute GUIs help, but not much.

Now get ntpd to show you that you need to do this, in one pass. If you 
already know all of the files to be accessed, and you are going to write 
the security policy by hand, then the two approaches might be kind of 
comparable. But that's not how AppArmor policies are created. This is 
not a minor distinction.

See above. The major classes of things that namespaces can't do are:

    * deliberate overlap
    * learning mode
    * wild cards, e.g. 'can read /var/www/**.html' to grant access to
      all of the HTML files in the tree, but not the .pl source code files

Crispin

-- 
Crispin Cowan, Ph.D.               http://crispincowan.com/~crispin
The Olympic Games: Symbolizing oppressiiion and corruption for over a
hundred years


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Fri Apr 4, 8:23 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Paul Moore, (Mon Apr 7, 11:40 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Wed Apr 9, 4:37 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Serge E. Hallyn, (Wed Apr 9, 9:22 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Thu Apr 10, 11:57 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Wed Apr 9, 9:11 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Fri Apr 11, 10:12 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Fri Apr 11, 10:30 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Sun Apr 13, 9:41 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Mon Apr 14, 9:48 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Mon Apr 14, 11:21 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Serge E. Hallyn, (Sun Apr 13, 12:36 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Sun Apr 13, 10:05 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Tue Apr 15, 9:00 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Mon Apr 14, 10:17 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Tue Apr 15, 12:59 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 16, 12:31 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Thu Apr 17, 3:49 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Thu Apr 17, 8:42 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Jamie Lokier, (Thu Apr 17, 4:45 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Casey Schaufler, (Mon Apr 14, 1:05 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Sat Apr 12, 7:33 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 9, 9:26 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 9, 8:49 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Thu Apr 10, 1:57 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Thu Apr 10, 8:51 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Fri Apr 11, 7:48 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Casey Schaufler, (Mon Apr 7, 6:57 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Daniel Walker, (Fri Apr 4, 12:29 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Mon Apr 7, 9:56 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Daniel Walker, (Mon Apr 7, 11:39 am)
speck-geostationary