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