Skip to contentSkip to conversation

Make the records output by audit_log_semanage_message() consistent

PATCH Applied Miloslav Trmač 2 participants 2 messages Mar 24, 2008 Library code

lore
Share & tools
lore
#0 lore raw

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
diff -ur audit/lib/audit_logging.c audit-1.6.9/lib/audit_logging.c
@@ -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 : "?",
Applied
#1 lore raw
Quoted 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