Make the records output by audit_log_semanage_message() consistent
PATCH 1/1 Make the records output by audit_log_semanage_message() consistent
Hello,
the attached patch fixes an inconsistency in audit_log_semanage_message(): It uses "old-seuser=" etc. if the name parameter is provided, but "old seuser=" etc. otherwise.
Mirek
lib/audit_logging.c +1 -1
@@ -562,7 +562,7 @@ ); }else snprintf(buf, sizeof(buf), - "op=%s id=%u old seuser=%s old role=%s old range=%s new seuser=%s new role=%s new range=%s exe=%s (hostname=%s, addr=%s, terminal=%s res=%s)", + "op=%s id=%u old-seuser=%s old-role=%s old-range=%s new-seuser=%s new-role=%s new-range=%s exe=%s (hostname=%s, addr=%s, terminal=%s res=%s)", op, id, old_seuser && strlen(old_seuser) ? old_seuser : "?", old_role && strlen(old_role) ? old_role : "?",
Steve Grubb
AppliedQuoted 2 lines · On Sunday 23 March 2008 22:31:14 Miloslav Trmač wrote:
the attached patch fixes an inconsistency in
audit_log_semanage_message()
Applied. Thanks!
-Steve