Blame SOURCES/0008-lgroupmod-Emit-AUDIT_GRP_CHAUTHTOK-not-AUDIT_GRP_MGM.patch

b3168a
From c6a4e9f596c976f71894269e3168567e6118236c Mon Sep 17 00:00:00 2001
b3168a
From: Steve Grubb <sgrubb@redhat.com>
b3168a
Date: Wed, 5 Jun 2019 22:16:51 +0200
b3168a
Subject: [PATCH] lgroupmod: Emit AUDIT_GRP_CHAUTHTOK, not AUDIT_GRP_MGMT when
b3168a
 changing group password
b3168a
b3168a
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1670997
b3168a
---
b3168a
 apps/lgroupmod.c | 8 ++++----
b3168a
 1 file changed, 4 insertions(+), 4 deletions(-)
b3168a
b3168a
diff --git a/apps/lgroupmod.c b/apps/lgroupmod.c
b3168a
index 0ad0ae4..20be85f 100644
b3168a
--- a/apps/lgroupmod.c
b3168a
+++ b/apps/lgroupmod.c
b3168a
@@ -138,12 +138,12 @@ main(int argc, const char **argv)
b3168a
 		    == FALSE) {
b3168a
 			fprintf(stderr, _("Failed to set password for group "
b3168a
 				"%s: %s\n"), group, lu_strerror(error));
b3168a
-			lu_audit_logger(AUDIT_GRP_MGMT,
b3168a
+			lu_audit_logger(AUDIT_GRP_CHAUTHTOK,
b3168a
 					"changing-group-passwd", group,
b3168a
 					AUDIT_NO_ID, 0);
b3168a
 			return 4;
b3168a
 		}
b3168a
-		lu_audit_logger(AUDIT_GRP_MGMT,
b3168a
+		lu_audit_logger(AUDIT_GRP_CHAUTHTOK,
b3168a
 				"changing-group-passwd", group,
b3168a
 				AUDIT_NO_ID, 1);
b3168a
 	}
b3168a
@@ -153,12 +153,12 @@ main(int argc, const char **argv)
b3168a
 				     &error) == FALSE) {
b3168a
 			fprintf(stderr, _("Failed to set password for group "
b3168a
 				"%s: %s\n"), group, lu_strerror(error));
b3168a
-			lu_audit_logger(AUDIT_GRP_MGMT,
b3168a
+			lu_audit_logger(AUDIT_GRP_CHAUTHTOK,
b3168a
 					"changing-group-passwd", group,
b3168a
 					AUDIT_NO_ID, 0);
b3168a
 			return 5;
b3168a
 		}
b3168a
-		lu_audit_logger(AUDIT_GRP_MGMT,
b3168a
+		lu_audit_logger(AUDIT_GRP_CHAUTHTOK,
b3168a
 				"changing-group-passwd", group,
b3168a
 				AUDIT_NO_ID, 1);
b3168a
 	}
b3168a
-- 
b3168a
2.20.1
b3168a