[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: How do chrooted X clients connect to server?
From: Alan Coopersmith <alan.coopersmith () oracle ! com>
Date: 2014-05-08 15:17:23
Message-ID: 536BA003.3060000 () oracle ! com
[Download RAW message or body]
On 05/ 8/14 06:55 AM, Pavel Krc wrote:
> Hi all,
>
> I've been using chrooted Debian (and other distros) for years, but there's one \
> thing that baffled me many times. While many users seek help trying to make \
> chrooted X programs work (mostly due to missing DISPLAY=... or xauth problems), I \
> cannot find a reason why this works for me when it clearly shouldn't. I'm running \
> XOrg outside the chroot, which listens only on a socket /tmp/.X11-unix/X0 and no \
> TCP port, as usual. When preparing the chroot, I don't bind /tmp to new root - I \
> mount a new tmpfs, so chrooted /tmp is empty (checked). Therefore, the X clients \
> should have no way of connecting the server, yet they work without any problems. I \
> have studied source codes of Xlib and XCB and found only the expected behavior of \
> trying /tmp/.X11-unix/X{display} and tcp port 6000 + {display} (which is closed). \
> Any ideas how this works or where I should continue my search?
Xorg also listens on abstract-namespace sockets by default on modern
Linux distros.
--
-Alan Coopersmith- alan.coopersmith@oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic