OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
NFR Wizards Archive: Re: chroot useful?

Re: chroot useful?


Aleph One (aleph1dfw.net)
Fri, 14 Nov 1997 11:24:14 -0600 (CST)


On Fri, 14 Nov 1997, Steven M. Bellovin wrote:

> That was precisely my point -- that this opinion is not correct. There
> are numerous ways for root to break out of a chroot() "jail"; the simplest
> is to do mknod() to create new special device files for the real disks, and
> mount new file systems on those devices. Many other variants are possible
> as well.

Actually the simplest is:

mkdir("foo",S_IRUSR|S_IXUSR);
chroot("foo");
chdir("..");

Aleph One / aleph1dfw.net
http://underground.org/
KeyID 1024/948FD6B5
Fingerprint EE C9 E8 AA CB AF 09 61 8C 39 EA 47 A8 6A B8 01



This archive was generated by hypermail 2.0b3 on Sat Jul 17 1999 - 07:09:48 CDT