06752e79eb
Resolves: #1310608 #1321392 #1325462 #1328947 #1336960 #1341179 #1350686 #1357822 #1339131 #1352378
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 3d52ea376b88d6edf6ba8176deae999c89344192 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Tue, 26 Apr 2016 05:19:10 -0400
|
|
Subject: [PATCH 4/8] systemd --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 systemd itself is
|
|
concerned, but is nice for various services spawned from by systemd --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
|
|
(cherry picked from commit 1000522a60ceade446773c67031b47a566d4a70d)
|
|
Resolves: #1328947
|
|
---
|
|
src/login/systemd-user.m4 | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/login/systemd-user.m4 b/src/login/systemd-user.m4
|
|
index 7933508..f188a8e 100644
|
|
--- a/src/login/systemd-user.m4
|
|
+++ b/src/login/systemd-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
|
|
--
|
|
2.7.4
|
|
|