switch_root and mount move
Rob Landley
rob at landley.net
Wed May 2 17:25:55 UTC 2012
On 05/02/2012 12:06 PM, Cathey, Jim wrote:
>
> mkdir("sub", 0700);
> chroot("sub");
> chdir("../../../../../../../../..");
> chroot(".");
>
> If that works, the kernel is broken IMHO.
> Or is this predicated on the CWD not being
> somewhere in the chroot path to begin with?
>
> -- Jim
Yes, chroot is broken. If you're root, you can break out of a chroot.
http://landley.net/notes-2011.html#02-06-2011
I've had a todo item to fix this for most of a year now, but it's a
couple weeks work and competes with 800 other todo items...
Rob
--
GNU/Linux isn't: Linux=GPLv2, GNU=GPLv3+, they can't share code.
Either it's "mere aggregation", or a license violation. Pick one.
More information about the busybox
mailing list