[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: breaking out of a chroot
From: |
Thomas Bushnell BSG |
Subject: |
Re: breaking out of a chroot |
Date: |
Tue, 17 May 2005 22:42:23 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
"Neal H. Walfield" <neal@walfield.org> writes:
> Breaking out of a chroot on the Hurd is trivial: just use a passive
> translator. A passive translator will inherit the namespace of the
> file system which started it, not the process which set it. Thus, a
> chroot'ed user need only run:
>
> settrans -c root /hurd/firmlink /
>
> Neighbor Hurds won't suffer from this problem.
>
> I don't have any ideas offhand of how this could be fixed.
It's easier than that; you can just directly ask the proc server for
the global system root.
The Hurd doesn't have Unixy chroots by design, but you can make a
subhurd which you can't break out of. That's the correct way to solve
the problems that Unix solves with chroot.
Thomas