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 linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Ingo Molnar | Re: [PATCH 00/34] AMD IOMMU driver |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Ryan Hope | reiser4 for 2.6.27-rc1 |
git: | |
| Linus Torvalds | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Jon Smirl | Re: VCS comparison table |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Dmitry Kakurin | Re: Git on MSys (or how to make it easy for Windows users to compile git) |
| Octavian Purdila | race in skb_splice_bits? |
| Wolfgang Walter | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
| Ingo Molnar | Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwritten |
| Rick Jones | Re: 2.6.24 BUG: soft lockup - CPU#X |
| Richard Stallman | Real men don't attack straw men |
| chefren | Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD |
| Pieter Verberne | File collision while using pkg_add |
| Jason Dixon | Re: Hardware recommendation for firewalls (more than 4 NICs) |
