comparison between SELinux and chroot
Hi,
I am looking for a paper with an comparison between SELinux and chroot. Why should I install and use SELinux, if I could use a chroot call, who is possible simplier.
Thanks
Carsten
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Carsten Grohmann
I am looking for a paper with an comparison between SELinux and chroot. Why should I install and use SELinux, if I could use a chroot call, who is possible simplier.
chroot merely limits a process to a subset of the filesystem. Even for that purpose, chroot is a weak mechanism, as a chroot jail can be easily broken by a superuser process. Setting up a chroot jail that is adequate for the functioning of the process while remaining "safe" is nontrivial, and consumes disk space unnecessarily for duplicated files. And chroot doesn't provide any protection for kernel services and objects other than the filesystem.
You might want to read a recent thread on this topic from the linux-kernel mailing list,
http://marc.theaimsgroup.com/?l=linux-kernel&m=102587714118914&w=2
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · Carsten Grohmann
I am looking for a paper with an comparison between SELinux and chroot. Why should I install and use SELinux, if I could use a chroot call, who is possible simplier.
That's sort of like comparing apples and rabbits. A chroot is a way of setting up an environment for testing or for a chroot jail... which can probably be broken out of, although you can improve this greatly with the grsec patches.
Selinux is security from the base up, built into the very operation of the system. It is MAC in the soul of the machine.
There simply *isn't* any real comparison.
Signature · 10 lines
------------------------------------------------------
Nuke bin Laden: Dale Amon, CEO/MD
improve the global Islandone Society
gene pool. www.islandone.org
------------------------------------------------------
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.