gentoo-ebuilds/sys-apps/systemd/files/systemd-user-selinux.pam
Rahul Sandhu 27e8a693ee
sys-apps/systemd: call pam_selinux.so in pam config for systemd-user
Currently, systemd --user sessions get launched with the wrong context,
init_t. Let's fix our pam config for systemd-user by calling
pam_selinux.so with close and nottys open like upstream does.

Closes: https://bugs.gentoo.org/908759
Signed-off-by: Rahul Sandhu <rahul@sandhuservices.dev>
Closes: https://github.com/gentoo/gentoo/pull/38747
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2024-09-26 15:15:20 -04:00

7 lines
204 B
Text

account include system-auth
session required pam_selinux.so close
session required pam_selinux.so nottys open
session required pam_loginuid.so
session include system-auth
session optional pam_systemd.so