* first step in making chroot nestable?
@ 2002-10-20 16:51 Shaya Potter
0 siblings, 0 replies; only message in thread
From: Shaya Potter @ 2002-10-20 16:51 UTC (permalink / raw)
To: linux-kernel
in looking through the code, it seems the follow_dotdot() function in
fs/namei.c is the ultimate part of how the kernel keeps programs jailed
into a chroot.
basically (very basic) what it appears to do is
if (place we chrooted == current place)
{
we're at the root
} otherwise we aren't
If we would have a linked list of chroot points, and whenever we hit one
of those points in a walk, we treat it as a root, wouldn't this chain
any fd's one brought into a chroot to the original root of that fd.
yes, there are other things that would have to be taken care of to make
a chroot jail more secure, but this should be an easy thing, correct? or
am I missing more.
thanks,
shaya
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-20 16:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-20 16:51 first step in making chroot nestable? Shaya Potter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox