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
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
| David Miller | Slow DOWN, please!!! |
| Mark Fasheh | [PATCH 0/39] Ocfs2 updates for 2.6.28 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Shawn O. Pearce | Re: pack operation is thrashing my server |
| Pierre Habouzit | git send-email improvements |
| Matthieu Moy | git push to a non-bare repository |
| Shawn O. Pearce | libgit2 - a true git library |
| Elad Efrat | Integrating securelevel and kauth(9) |
| Hubert Feyrer | Re: Compressed vnd handling tested successfully |
| Lord Isildur | Re: Fork bomb protection patch |
| Matt Thomas | Re: FFS journal |
| Will Maier | cron doesn't run commands in /etc/crontab? |
| Richard Stallman | Real men don't attack straw men |
| Harald Dunkel | Re: Packet Filter: how to keep device names on hardware failure? |
| Jordi Espasa Clofent | Resolving dependencies with pkg_add |
| Question on swap as ramdisk partition | 1 hour ago | Linux kernel |
| Netfilter kernel module | 11 hours ago | Linux kernel |
| serial driver xmit problem | 14 hours ago | Linux kernel |
| Why Windows is better than Linux | 14 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 21 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 2 days ago | Linux general |
