[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] 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
diff -ur audit/lib/audit_logging.c audit-1.6.9/lib/audit_logging.c
--- audit/lib/audit_logging.c	2008-03-09 19:33:51.000000000 +0100
+++ audit-1.6.9/lib/audit_logging.c	2008-03-24 03:13:51.000000000 +0100
@@ -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 : "?",

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]