Messages in this thread | | | From | (Alan Cox) | Subject | Re: Security patch for /proc | Date | Wed, 1 Apr 1998 11:16:38 +0100 (BST) |
| |
> Alan Cox wrote: > > mkdir("x"); > > chroot("x"); > > chdir("../../../../../../../.."); > > chroot("."); > > Huh? What are you saying here, Alan? /.. == /, regardless of whether > its the real / or a chroot /.
/ is the point defined by chroot() .. is the directory above you.
When you mkdir x, chroot x you now have . above / and ../../.. moves above / to the true root
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |