Re: Security patch for /proc

Raul Miller (rdm@test.legislate.com)
Sat, 4 Apr 1998 13:07:13 -0500


Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> mkdir("x");
> chroot("x");
> chdir("../../../../../../../..");
> chroot(".");

Note that the chdir is pointless, what matters is live reference
(working directory) to something outside the new root.

-- 
Raul

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu