aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-pam-conf1
-rw-r--r--system-login.in3
-rw-r--r--system-services.in3
3 files changed, 7 insertions, 0 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index 7d3d07e..ecd5697 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -2,6 +2,7 @@
#define HAVE_ENV 1
#define HAVE_ACCESS 1
#define HAVE_SHELLS 1
+#define HAVE_LOGINUID 1
#define SUPPORT_UNIX_SESSION 1
#define SUPPORT_NOLOGIN_ACCOUNT 1
diff --git a/system-login.in b/system-login.in
index 3073a10..0c3b5c8 100644
--- a/system-login.in
+++ b/system-login.in
@@ -31,6 +31,9 @@ password include system-auth
password optional pam_gnome_keyring.so
#endif
+#if HAVE_LOGINUID
+session optional pam_loginuid.so
+#endif
#if HAVE_SELINUX
session required pam_selinux.so close
#endif
diff --git a/system-services.in b/system-services.in
index 00b6e43..989267f 100644
--- a/system-services.in
+++ b/system-services.in
@@ -2,4 +2,7 @@ auth sufficient pam_permit.so
account include system-auth
+#if HAVE_LOGINUID
+session optional pam_loginuid.so
+#endif
#include "system-session.inc"