www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/23/17:15:48

Sender: nate AT cartsys DOT com
Message-ID: <36D3287A.B400FF70@cartsys.com>
Date: Tue, 23 Feb 1999 14:15:22 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: patches for chroot
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990223182953 DOT 13729D-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019