]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pam: systemd-user - call selinux module 1338/head
authorKay Sievers <kay@vrfy.org>
Thu, 17 Sep 2015 15:15:28 +0000 (17:15 +0200)
committerKay Sievers <kay@vrfy.org>
Tue, 22 Sep 2015 15:54:13 +0000 (17:54 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1262933

Makefile.am
src/login/.gitignore
src/login/systemd-user.m4 [moved from src/login/systemd-user with 52% similarity]

index 3cc27cbbfce7c85e1efdb79a55fbb8d32f663e33..41bfdfbeac487cba37f0f6ff1ca718f3ef4c0636 100644 (file)
@@ -5488,6 +5488,8 @@ pamlib_LTLIBRARIES = \
 dist_pamconf_DATA = \
        src/login/systemd-user
 
+EXTRA_DIST += \
+       src/login/systemd-user.m4
 endif
 
 nodist_systemunit_DATA += \
index 5c0b2ac68c568e88c5c5489ee4f4bb5f8a5dc749..39088ec25217c5795c6cedc62e492b5d6ae66682 100644 (file)
@@ -2,3 +2,4 @@
 /org.freedesktop.login1.policy
 /71-seat.rules
 /73-seat-late.rules
+/systemd-user
similarity index 52%
rename from src/login/systemd-user
rename to src/login/systemd-user.m4
index 8112d746404d8569f5c162276a58aefc89d8285b..7933508f2bd33d8d3951209cc66a00dc39571208 100644 (file)
@@ -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