Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2006 17:01:09 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        freebsd-emulation@freebsd.org, Timothy Bourke <timbob@bigpond.com>
Subject:   Re: X11 through nullfs under chroot
Message-ID:  <20061216170109.6bf0da68@Magellan.Leidinger.net>
In-Reply-To: <20061215173644.GA87389@stud.fit.vutbr.cz>
References:  <20061215040136.GA2466@triptrop.wlan.in.nicta.com.au> <20061215111523.bh59htm680ok4gk8@webmail.leidinger.net> <20061215173644.GA87389@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Divacky Roman <xdivac02@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061216170109.6bf0da68>