On Wed, Sep 26, 2007 at 08:04:14PM +0930, David Newall wrote:OK, the possibilities are * you've discovered a bug in all Unices (BTW, even FreeBSD *does* allow to break out of some chroots in that fashion; RTFS and you'll see - just pay attention to setting fdp->fd_jdir logics in kern/vfs_syscalls.c: change_root(); it sets jail boundary on _first_ chroot and if you've got nested chroots, you can leave them just fine by use of SCM_RIGHTS to hold directory descriptor). All hail David, nevermind that this behaviour had been described in Unix FAQs since _way_ back. * you've misunderstood the purpose of chroot(), the fact that behaviour in question is at the very least extremely common on Unix and the fact that any code relying on root-proof chroot(2) is broken and needs to be fixed, simply because chroot is _not_ root-proof on (at least) almost all systems. Note that the last statement applies in both cases; it's simply reality. Insisting that behaviour known for decades is a bug since it contradicts your rather convoluted reading of the standards... Looks rather silly, IMO, but that has zero practical consequences anyway. Userland code can't rely on root-proof chroot(2), period. -
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jarek Poplawski | Re: [BUG] New Kernel Bugs |
