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

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