On Wed, 26 Sep 2007 20:04:14 +0930 David Newall <david@davidnewall.com> wrote:So how about reading up on the subject instead? *spends five minutes with Google* From the OpenBSD FAQ (an operating system most know for being really, really focused on security): http://www.openbsd.org/faq/faq10.html Any application which has to assume root privileges to operate is pointless to attempt to chroot(2), as root can generally escape a chroot(2). Solaris: http://www.softpanorama.org/Solaris/Security/solaris_privilege_sets.shtml You must be root to make the chroot() call, and you should quickly change to non-root (a root user can escape a chroot environment, so if it's to be effective, you need to drop that privilege). A chroot FAQ: http://www.unixwiz.net/techtips/chroot-practices.html There are well-known techniques used to escape from jail, but the most common one requires root privileges inside the jail. Another chroot FAT one linked to from the previous one: http://www.bpfh.net/simes/computing/chroot-break.html This page details how the chroot() system call can be used to provide an additional layer of security when running untrusted programs. It also details how this additional layer of security can be circumvented. Whilst chroot() is reasonably secure, a program can escape from its trap. Yet Another FAQ, this time about secure Unix Programming: http://www.faqs.org/faqs/unix-faq/programmer/secure-programming/ chroot() only limits the file system scope and nothing else. [further descriptions of how to break out of chroot, with and without root privileges] Convinced? /Christer -- "Just how much can I get away with and still go to heaven?" Christer Weinigel <christer@weinigel.se> http://www.weinigel.se -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Ingo Molnar | [git pull] x86 arch updates for v2.6.25 |
| Anton Salikhmetov | [PATCH -v8 2/4] Update ctime and mtime for memory-mapped files |
git: | |
| Patrick McHardy | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 16/37] dccp: API to query the current TX/RX CCID |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
