Blame SOURCES/fapolicyd-user-group-doc.patch

0aabf8
From fb4c274f4857f2d652014b0189abafb1df4b001a Mon Sep 17 00:00:00 2001
0aabf8
From: Steve Grubb <sgrubb@redhat.com>
0aabf8
Date: Tue, 19 Jul 2022 12:18:18 -0400
0aabf8
Subject: [PATCH] Add documentation describing support for user/group names
0aabf8
0aabf8
---
0aabf8
 doc/fapolicyd.rules.5  | 6 +++---
0aabf8
 init/fapolicyd.service | 2 ++
0aabf8
 2 files changed, 5 insertions(+), 3 deletions(-)
0aabf8
0aabf8
diff --git a/doc/fapolicyd.rules.5 b/doc/fapolicyd.rules.5
0aabf8
index aa77177..3b8ec09 100644
0aabf8
--- a/doc/fapolicyd.rules.5
0aabf8
+++ b/doc/fapolicyd.rules.5
0aabf8
@@ -35,13 +35,13 @@ The subject is the process that is performing actions on system resources. The f
0aabf8
 This matches against any subject. When used, this must be the only subject in the rule.
0aabf8
 .TP
0aabf8
 .B auid
0aabf8
-This is the login uid that the audit system assigns users when they log in to the system. Daemons have a value of -1.
0aabf8
+This is the login uid that the audit system assigns users when they log in to the system. Daemons have a value of -1. The given value may be numeric or the account name.
0aabf8
 .TP
0aabf8
 .B uid
0aabf8
-This is the user id that the program is running under.
0aabf8
+This is the user id that the program is running under. The given value may be numeric or the account name.
0aabf8
 .TP
0aabf8
 .B gid
0aabf8
-This is the group id that the program is running under.
0aabf8
+This is the group id that the program is running under. The given value may be numeric or the group name.
0aabf8
 .TP
0aabf8
 .B sessionid
0aabf8
 This is the numeric session id that the audit system assigns to users when they log in. Daemons have a value of -1.
0aabf8
diff --git a/init/fapolicyd.service b/init/fapolicyd.service
0aabf8
index 715de98..a5a6a3f 100644
0aabf8
--- a/init/fapolicyd.service
0aabf8
+++ b/init/fapolicyd.service
0aabf8
@@ -11,6 +11,8 @@ PIDFile=/run/fapolicyd.pid
0aabf8
 ExecStartPre=/usr/sbin/fagenrules
0aabf8
 ExecStart=/usr/sbin/fapolicyd
0aabf8
 Restart=on-abnormal
0aabf8
+# Uncomment the following line if rules need user/group name lookup
0aabf8
+#After=nss-user-lookup.target
0aabf8
 
0aabf8
 [Install]
0aabf8
 WantedBy=multi-user.target
0aabf8
-- 
0aabf8
2.37.1
0aabf8