]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/pam_systemd.c
pam_systemd: Check also abstract socket for X11
authorTopi Miettinen <toiwoton@gmail.com>
Fri, 26 Nov 2021 14:34:48 +0000 (16:34 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 28 Nov 2021 18:24:39 +0000 (18:24 +0000)
commitddf127cda450833e5f46fe7a977adf5af10163c8
treee03388893521694ba9c63734ef495de2c16e0691
parent64a05587ce91ea53cb737944194c525831fbbe56
pam_systemd: Check also abstract socket for X11

It seems that `pam_systemd` was the only thing left that wanted to use sockets
in file system path `/tmp/.X11-unix/X*`. X11 apps actually prefer using the
abstract socket version.

This allows running Xserver with `-nolisten tcp -nolisten unix`, which makes
the server only listen to an abstract socket.

Also in my setup, Xserver is running as a separate system service instead of
starting from display manager service, and now `PrivateTmp=yes` can be used for
both. The file system of the display manager service is inherited by user apps
and now their `/tmp` will be separate from `/tmp` of PID1 namespace as well as
`/tmp` of Xserver.
src/login/pam_systemd.c