On Mon, May 03, 2021 at 08:51:51PM +0000, Karsten Pedersen wrote:
> It is worth noting that you can move (not copy) UNIX sockets (again,
> so long as they are on the same filesystem).
> 
> So, once Xephyr has started up, you can move the socket from
> "/tmp/.X11-unix/X1" into "$CHROOT/tmp/.X11-unix/X1" and then your
> chroot application can access it.

Assuming root permissions, the above will "succeed" even if $CHROOT
is not on the same filesystem as /tmp. Then fail to connect at runtime.

Using ln (not ln -s) instead of mv will fail faster if the same-filesystem
requirement is not met. 

Reply via email to