summaryrefslogtreecommitdiff
path: root/src/login/elogind-user.m4
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-26 05:19:10 -0400
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:58 +0200
commitb51b5b411eb849a0dca4f62f1eed23ed438aea44 (patch)
treea1f663f5a7c649a271a83ff555847a11f493cc88 /src/login/elogind-user.m4
parentc315b86eedc43ed8fc7423d48142fa967bfbd917 (diff)
elogind --user: call pam_loginuid when creating user@.service (#3120)
This way the user service will have a loginuid, and it will be inherited by child services. This shouldn't change anything as far as elogind itself is concerned, but is nice for various services spawned from by elogind --user that expect a loginuid. pam_loginuid(8) says that it should be enabled for "..., crond and atd". user@.service should behave similarly to those two as far as audit is concerned. https://bugzilla.redhat.com/show_bug.cgi?id=1328947#c28
Diffstat (limited to 'src/login/elogind-user.m4')
-rw-r--r--src/login/elogind-user.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/elogind-user.m4 b/src/login/elogind-user.m4
index 7933508f2..f188a8e54 100644
--- a/src/login/elogind-user.m4
+++ b/src/login/elogind-user.m4
@@ -8,4 +8,5 @@ m4_ifdef(`HAVE_SELINUX',
session required pam_selinux.so close
session required pam_selinux.so nottys open
)m4_dnl
+session required pam_loginuid.so
session include system-auth