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

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