Re: PATCH: Unix98 pty support.

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Mon, 26 Jan 1998 23:19:26 +0100 (MET)


> My understanding of Mike's objections was that he thought the emulated
> binaries ran in a chrooted environment, so that they wouldn't have
> access to files outside of the emulation tree.
>
> I wasn't sure whether the SPARC and MIPS ports worked like the NetBSD
> emulation model, or as a chrooted environment. Given the objections
> which I heard, it's clear that at least some people were under the
> impression that the SPARC and MIPS ports worked in a chroot environment,
> and that's what they were complaining about.

They don't run in a chrooted environment. It works like if some file or
directory is present in the /usr/gnemul/platform/ tree, it is taken from
there, otherwise it takes the one in normal root. I was also trying to
explain what are our current problems with that: things like getcwd don't
work. And my idea how to solve it: if we had a nice overlay filesystem, then
those programs could run in a chrooted environment, but that wouldn't be a
limitation. It would be something like:
mount / at /usr/gnemul/solaris, but override /dev from
/usr/gnemul/solaris/dev and /usr/lib from /usr/gnemul/solaris/usr/lib.
Then I don't see any limitations of this and don't understand what is bad
about the chroot. It can access your files...

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.0.32 on a sparc machine (291.64 BogoMips).
___________________________________________________________________