Summary
Pull request #6979 should be reconsidered because it breaks a useful systemd-nspawn convention for little practical benefit.
See: #6979 (comment)
Submission type
systemd version the issue has been seen with
235
Used distribution
Arch Linux
In case of bug report: Expected behaviour you didn't see
-
Launch container with systemd-nspawn … --bind=/tmp/.X11-unix
-
Run an X client program successfully from within the container.
In case of bug report: Unexpected behaviour you saw
-
Launch container with systemd-nspawn … --bind=/tmp/.X11-unix
-
X client program exits with cannot open display: :0.
-
X unix socket at /tmp/.X11-unix/X0 on the host has been deleted by systemd-nspawn.
In case of bug report: Steps to reproduce the problem
-
Create a container if necessary.
-
Ensure host machine is running an X server that is listening on a unix socket in /tmp/.X11-unix/
-
Boot the container with:
systemd-nspawn --boot --directory DIR --bind=/tmp/.X11-unix
- Check
/tmp/.X11-unix/ in the host and notice that all sockets in the directory have been deleted.
Summary
Pull request #6979 should be reconsidered because it breaks a useful systemd-nspawn convention for little practical benefit.
See: #6979 (comment)
Submission type
systemd version the issue has been seen with
235
Used distribution
Arch Linux
In case of bug report: Expected behaviour you didn't see
Launch container with
systemd-nspawn … --bind=/tmp/.X11-unixRun an X client program successfully from within the container.
In case of bug report: Unexpected behaviour you saw
Launch container with
systemd-nspawn … --bind=/tmp/.X11-unixX client program exits with
cannot open display: :0.X unix socket at
/tmp/.X11-unix/X0on the host has been deleted by systemd-nspawn.In case of bug report: Steps to reproduce the problem
Create a container if necessary.
Ensure host machine is running an X server that is listening on a unix socket in
/tmp/.X11-unix/Boot the container with:
/tmp/.X11-unix/in the host and notice that all sockets in the directory have been deleted.