commit b07b0ace57aaa7770a9c3127e3424e65df8194f2 parent 0d8c3d4a1141737c37f8482a01f1c8737fe5ea59 Author: ccx <ccx@te2000.cz> Date: Tue, 19 Mar 2024 17:58:10 +0000 Allow access to X11 unix domain socket Diffstat:
M | sbin/logincaps | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sbin/logincaps b/sbin/logincaps @@ -28,7 +28,10 @@ run_x() { s6-svc -wU -T 8000 -o /run/service/container.X$X && chmod 640 /run/Xauthority.$X && chown xorg:$USER /run/Xauthority.$X && - cat /run/containers/X$X.xorg/run/X/Xauthority > /run/Xauthority.$X + cat /run/containers/X$X.xorg/run/X/Xauthority > /run/Xauthority.$X && + chmod o+x /run/containers/X$X.xorg/tmp /run/containers/X$X.xorg/tmp/.X11-unix && + chown $USER:$USER /run/containers/X$X.xorg/tmp/.X11-unix/X$X + # with /proc/sys/fs/protected_hardlinks = 1 only owner can hardlink a socket } typeset -f -t run_x