Subject: Re: openat(2) and friends
To: Rhialto <rhialto@azenomei.knuffel.net>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-kern
Date: 03/08/2005 14:30:10
On Tue, 8 Mar 2005, Rhialto wrote:
>> I'd like som feedback on this approach before continuing with
>> fstatat(2) and opendir(3).
>
> Would this help to escape from a chroot()?
I guess you'd need a file descriptor from outside the chroot first.
Dunno if something like the following scenario would work:
* Have two (say) ssh daemons run, one in chroot, one outside
* get descriptor #1 to the non-chrooted sshd
* log into the chrooted sshd
* openat(/etc/passwd, #1)
- Hubert
--
NetBSD - Free AND Open! (And of course secure, portable, yadda yadda)