summaryrefslogtreecommitdiff
path: root/sys-apps/systemd/files/232-systemd-user-pam.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/systemd/files/232-systemd-user-pam.patch')
-rw-r--r--sys-apps/systemd/files/232-systemd-user-pam.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/systemd/files/232-systemd-user-pam.patch b/sys-apps/systemd/files/232-systemd-user-pam.patch
new file mode 100644
index 00000000..9c4b3910
--- /dev/null
+++ b/sys-apps/systemd/files/232-systemd-user-pam.patch
@@ -0,0 +1,16 @@
+--- a/src/login/systemd-user.m4
++++ b/src/login/systemd-user.m4
+@@ -2,11 +2,7 @@
+ #
+ # Used by systemd --user instances.
+
+-account required pam_unix.so
++account include system-services
+
+-m4_ifdef(`HAVE_SELINUX',
+-session required pam_selinux.so close
+-session required pam_selinux.so nottys open
+-)m4_dnl
+-session required pam_loginuid.so
++session include system-services
+ session optional pam_systemd.so