aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2010-10-24 01:17:01 +0200
committerDiego Elio Pettenò <flameeyes@gmail.com>2010-10-24 01:33:15 +0200
commit41459990f68b046185880c3db7606118ae56a38b (patch)
tree138a6bfed80872c9665a1a99f9e5f071874f2544
parentAdd support for building minimal PAM chains. (diff)
downloadpambase-41459990f68b046185880c3db7606118ae56a38b.tar.gz
pambase-41459990f68b046185880c3db7606118ae56a38b.tar.bz2
pambase-41459990f68b046185880c3db7606118ae56a38b.zip
Implement support for pam_loginuid as needed for bug #342345pambase-20101024
-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"