Is the restricted shell really secure?
Gregg Thompson
greggt at ncoast.UUCP
Tue Jul 31 11:53:56 AEST 1984
It make the chroot() call not
go back past the 'new' root area you
use the following program.
main()
{
unlink("DIRECTORY/..");
link("DIRECTORY/.","DIRECTORY/..");
}
I think that is right. This
will make sure there is the right
number of links and will make '..'
point to '.'.
--
Gregg Thompson
{ucbvax}!decvax!cwruecmp!ncoast!greggt
{ucbvax}!decvax!cbosgd!aat!m-net!greggt
{ucbvax}!decvax!microsoft!trsvax!sneaky!greggt
{decvax}!ucbvax!dual!proper!greggt
{ucbvax}!decvax!vortex!ihnp4!wlcrjs!greggt
More information about the Comp.unix.wizards
mailing list