From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 15 04:03:00 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F09016A415 for ; Fri, 15 Dec 2006 04:03:00 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from barracuda.cse.unsw.edu.au (barracuda.cse.unsw.EDU.AU [129.94.175.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C037C43CB0 for ; Fri, 15 Dec 2006 04:01:11 +0000 (GMT) (envelope-from tbourke@triptrop.cse.unsw.edu.au) X-ASG-Debug-ID: 1166155366-23d400700000-qunlfv X-Barracuda-URL: http://129.94.175.101:8000/cgi-bin/mark.cgi X-Barracuda-Connect: tone.orchestra.cse.unsw.EDU.AU[129.94.242.59] X-Barracuda-Start-Time: 1166155366 Received: from tone.orchestra.cse.unsw.EDU.AU (tone.orchestra.cse.unsw.EDU.AU [129.94.242.59]) by barracuda.cse.unsw.edu.au (Spam Firewall) with ESMTP id 04EDC4356 for ; Fri, 15 Dec 2006 15:02:46 +1100 (EST) X-CSE-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on tone.orchestra.cse.unsw.EDU.AU X-CSE-Spam-Level: X-CSE-Spam-Status: No, score=-2.3 required=4.0 tests=BAYES_00 autolearn=ham version=3.1.3 Received: From triptrop.cse.unsw.edu.au ([203.143.174.122] == research-remote.nicta.com.au) (for ) By tone With Smtp ; Fri, 15 Dec 2006 15:02:45 +1100 Received: from triptrop.cse.unsw.edu.au (localhost [127.0.0.1]) by triptrop.cse.unsw.edu.au (8.13.6/8.13.6) with ESMTP id kBF41bHm003283 for ; Fri, 15 Dec 2006 15:01:37 +1100 (EST) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: (from tbourke@localhost) by triptrop.cse.unsw.edu.au (8.13.6/8.13.6/Submit) id kBF41bHJ003282 for freebsd-emulation@freebsd.org; Fri, 15 Dec 2006 15:01:37 +1100 (EST) (envelope-from tbourke) From: Timothy Bourke To: freebsd-emulation@freebsd.org Date: Fri, 15 Dec 2006 15:01:36 +1100 X-ASG-Orig-Subj: X11 through nullfs under chroot Message-ID: <20061215040136.GA2466@triptrop.wlan.in.nicta.com.au> Mail-Followup-To: freebsd-emulation@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://www.cse.unsw.edu.au/~tbourke/pubkey.txt X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at cse.unsw.edu.au Subject: X11 through nullfs under chroot X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 04:03:00 -0000 --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--