One AUDIT_USER_START remained. Replace it with AUDIT_CHGRP_ID also.
This commit is contained in:
parent
a8bc585e33
commit
80ef1db3b3
10
src/newgrp.c
10
src/newgrp.c
@ -182,7 +182,15 @@ failure:
|
||||
*/
|
||||
closelog ();
|
||||
#ifdef WITH_AUDIT
|
||||
audit_logger (AUDIT_USER_START, Prog, "changing", NULL, getuid (), 0);
|
||||
if (groupname) {
|
||||
snprintf (audit_buf, sizeof(audit_buf),
|
||||
"changing new-group=%s", groupname);
|
||||
audit_logger (AUDIT_CHGRP_ID, Prog,
|
||||
audit_buf, NULL, getuid (), 0);
|
||||
} else {
|
||||
audit_logger (AUDIT_CHGRP_ID, Prog, "changing",
|
||||
NULL, getuid (), 0);
|
||||
}
|
||||
#endif
|
||||
exit (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user