X11 through nullfs under chroot
Alexander Leidinger
Alexander at Leidinger.net
Sat Dec 16 08:01:20 PST 2006
Quoting Divacky Roman <xdivac02 at stud.fit.vutbr.cz> (Fri, 15 Dec 2006 18:36:45 +0100):
> On Fri, Dec 15, 2006 at 11:15:23AM +0100, Alexander Leidinger wrote:
> > Quoting Timothy Bourke <timbob at bigpond.com> (from Fri, 15 Dec 2006
> > 15:01:36 +1100):
> >
> > >I would like to run chroot-ed gentoo-stage3 X client applications on my
> > >host X server through a Unix domain socket.
> > >
> > >It does work:
> > > * through a tcp socket
> > > * using a hardlink to /tmp/.X11-unix/X0
> > >
> > >But it does not work via:
> > > mount -t nullfs /tmp /compat/linux/tmp
> >
> > This smells like a problem in nullfs regarding sockets (and maybe
> > other special files). I suggest to tell about this on the filesystem
> > mailinglist. Don't forget to tell them hich version of FreeBSD you are
> > using.
>
> there's a comment in compat/linux/linux_getcwd.c
>
> /*
> * XXX Untested vs. mount -o union; probably does the wrong thing.
> */
>
> I guess it applies to nullfs too
I did test this with mysql now. You can not connect to a socket when
mounted via nullfs, using a hardlink instead works as expected (tested
with 2 jails).
Bye,
Alexander.
--
Hmmm ... A hash-singer and a cross-eyed guy were SLEEPING on a deserted
island, when ...
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-emulation
mailing list