public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] Make the records output by audit_log_semanage_message() consistent
@ 2008-03-24  2:31 Miloslav Trmač
  2008-03-24 12:32 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Miloslav Trmač @ 2008-03-24  2:31 UTC (permalink / raw)
  To: linux-audit

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

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

[-- Attachment #2: audit-1.6.9-semanage_message.patch --]
[-- Type: text/x-patch, Size: 683 bytes --]

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 : "?",

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-24 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24  2:31 [PATCH] Make the records output by audit_log_semanage_message() consistent Miloslav Trmač
2008-03-24 12:32 ` Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox