Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2006 15:01:36 +1100
From:      Timothy Bourke <timbob@bigpond.com>
To:        freebsd-emulation@freebsd.org
Subject:   X11 through nullfs under chroot
Message-ID:  <20061215040136.GA2466@triptrop.wlan.in.nicta.com.au>

next in thread | raw e-mail | index | archive | help

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

The /tmp/.X11-unix/X0 directory is visible from with the chroot
environment but X clients fail:
    DISPLAY="localhost/unix:0"; export DISPLAY; xlogo
gives:
    Error: Can't open display: localhost/unix:0

I also tried the client and server programs from this page:
  http://www.ecst.csuchico.edu/~beej/guide/ipc/usock.html

They work between the chroot and host directly or via hardlinks but not
via nullfs.

This seems to be the exact problem of PR kern/51583. But the given patch
does not apply directly to 6.1-RELEASE-p11.

Is anyone successfully using domain sockets to X from a chroot under 6.x?
Or, is this altogether the wrong way of doing things?

Thank you,

Tim.


--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFFgh4gtKVK1sFb0ecRAgrEAJ4lcYhOrxum3X9Ttpph+2cDLf4YBgCePzbs
Tt3u8GFH0t+AVoLqCgkigp8=
=DtSH
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--



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