summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-09-17 17:15:28 +0200
committerKay Sievers <kay@vrfy.org>2015-09-22 17:54:13 +0200
commita13cff19ce8a52e4f5c436e3cc84355691ed6341 (patch)
tree0afabedc3f36dadec977770c8133de56bf2ad9e1
parent03364e472bccf64544e3a0d36d09f90c78f9f699 (diff)
pam: systemd-user - call selinux module
https://bugzilla.redhat.com/show_bug.cgi?id=1262933
-rw-r--r--Makefile.am2
-rw-r--r--src/login/.gitignore1
-rw-r--r--src/login/systemd-user.m4 (renamed from src/login/systemd-user)5
3 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 3cc27cbbfc..41bfdfbeac 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5488,6 +5488,8 @@ pamlib_LTLIBRARIES = \
dist_pamconf_DATA = \
src/login/systemd-user
+EXTRA_DIST += \
+ src/login/systemd-user.m4
endif
nodist_systemunit_DATA += \
diff --git a/src/login/.gitignore b/src/login/.gitignore
index 5c0b2ac68c..39088ec252 100644
--- a/src/login/.gitignore
+++ b/src/login/.gitignore
@@ -2,3 +2,4 @@
/org.freedesktop.login1.policy
/71-seat.rules
/73-seat-late.rules
+/systemd-user
diff --git a/src/login/systemd-user b/src/login/systemd-user.m4
index 8112d74640..7933508f2b 100644
--- a/src/login/systemd-user
+++ b/src/login/systemd-user.m4
@@ -3,4 +3,9 @@
# Used by systemd --user instances.
account include system-auth
+
+m4_ifdef(`HAVE_SELINUX',
+session required pam_selinux.so close
+session required pam_selinux.so nottys open
+)m4_dnl
session include system-auth