#41 lgroupmod: Emit AUDIT_GRP_CHAUTHTOK, not AUDIT_GRP_MGMT when changing group password
Merged 8 months ago by jhrozek. Opened 8 months ago by jhrozek.
jhrozek/libuser amend_lifecycly  into  master

file modified
+4 -4

@@ -138,12 +138,12 @@ 

  		    == FALSE) {

  			fprintf(stderr, _("Failed to set password for group "

  				"%s: %s\n"), group, lu_strerror(error));

- 			lu_audit_logger(AUDIT_GRP_MGMT,

+ 			lu_audit_logger(AUDIT_GRP_CHAUTHTOK,

  					"changing-group-passwd", group,

  					AUDIT_NO_ID, 0);

  			return 4;

  		}

- 		lu_audit_logger(AUDIT_GRP_MGMT,

+ 		lu_audit_logger(AUDIT_GRP_CHAUTHTOK,

  				"changing-group-passwd", group,

  				AUDIT_NO_ID, 1);

  	}

@@ -153,12 +153,12 @@ 

  				     &error) == FALSE) {

  			fprintf(stderr, _("Failed to set password for group "

  				"%s: %s\n"), group, lu_strerror(error));

- 			lu_audit_logger(AUDIT_GRP_MGMT,

+ 			lu_audit_logger(AUDIT_GRP_CHAUTHTOK,

  					"changing-group-passwd", group,

  					AUDIT_NO_ID, 0);

  			return 5;

  		}

- 		lu_audit_logger(AUDIT_GRP_MGMT,

+ 		lu_audit_logger(AUDIT_GRP_CHAUTHTOK,

  				"changing-group-passwd", group,

  				AUDIT_NO_ID, 1);

  	}

Actually, this is so trivial, I'm going to just merge..

Commit 1b2cc12 fixes this pull-request

Pull-Request has been merged by jhrozek

8 months ago

Pull-Request has been merged by jhrozek

8 months ago
Metadata