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

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