aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-03-13 15:52:27 +0200
committerSamuli Suominen <ssuominen@gentoo.org>2014-03-13 15:52:27 +0200
commitc1058bd8ccde0c56454a48339e9afb7a6e7fa80f (patch)
tree44f60d5a971f8f05f335033f7a4f9f855ea13552
parentAdd pam.d files for login, passwd and su. (diff)
downloadpambase-c1058bd8ccde0c56454a48339e9afb7a6e7fa80f.tar.gz
pambase-c1058bd8ccde0c56454a48339e9afb7a6e7fa80f.tar.bz2
pambase-c1058bd8ccde0c56454a48339e9afb7a6e7fa80f.zip
Import -systemd.patch and -systemd-auth.patch from gentoo-x86, see both bugs #372229 and #485470
-rw-r--r--Makefile4
-rw-r--r--system-auth.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7d3e22a..ec5d240 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,10 @@ ifeq "$(CONSOLEKIT)" "yes"
PAMFLAGS += -DHAVE_CONSOLEKIT=1
endif
+ifeq "$(SYSTEMD)" "yes"
+PAMFLAGS += -DHAVE_SYSTEMD=1
+endif
+
ifeq "$(GNOME_KEYRING)" "yes"
PAMFLAGS += -DHAVE_GNOME_KEYRING=1
endif
diff --git a/system-auth.in b/system-auth.in
index a80d653..43df701 100644
--- a/system-auth.in
+++ b/system-auth.in
@@ -35,3 +35,7 @@ password optional pam_permit.so
session optional pam_ssh.so
#endif
#include "system-session.inc"
+
+#if HAVE_SYSTEMD
+-session optional pam_systemd.so
+#endif