]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/pam_systemd.c
pam_systemd: resolve the tty of display via /sys instead of /dev
authorTopi Miettinen <toiwoton@gmail.com>
Sun, 26 Jan 2020 09:58:34 +0000 (11:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Jan 2020 15:06:48 +0000 (16:06 +0100)
commite21d90606afc7d433df738373fab20411c559f74
treeda74c1d976770d9b20df0ea6a7f0c6dce51938e9
parent72d43d09ccb55b70d65494ad8cfea5af6f3ef52f
pam_systemd: resolve the tty of display via /sys instead of /dev

Rely on information provided by /proc/*/stat and /sys/dev/char for resolving
the controlling tty for the display server, instead of trying to access the
tty device in /dev (which may not be accessible for example due to
PrivateDevices=yes).
src/login/pam_systemd.c