Mail Archives: djgpp-workers/1999/02/23/17:15:48
Eli Zaretskii wrote:
>
> On Tue, 23 Feb 1999, Mark E. wrote:
>
> > > be compatible with Unix description that every call to chroot interprets
> > > its argument *relative to the previous root*.
> >
> > This is mentioned in the descriptions I found for the chroot command,
> > but not in the descriptions (for HPUX & Minux) for the chroot function.
>
> Can somebody with acces to Unix/Linux compile a trivial test program and
> see whether this is true for the function as well?
On Linux 2.2.1, it is. `chroot("/foo"); chroot("/bar")' ==
`chroot("/foo/bar")'. This stands to reason, too, since AFAIK `chroot'
is intended to be a trapdoor; once in the jail you cannot escape.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -