From: "Miloslav Trmač" <mitr@redhat.com>
To: linux-audit@redhat.com
Subject: [PATCH] Make the records output by audit_log_semanage_message() consistent
Date: Mon, 24 Mar 2008 03:31:14 +0100 [thread overview]
Message-ID: <1206325874.17164.32.camel@amilo> (raw)
[-- 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 --]
next reply other threads:[~2008-03-24 2:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 2:31 Miloslav Trmač [this message]
2008-03-24 12:32 ` [PATCH] Make the records output by audit_log_semanage_message() consistent Steve Grubb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1206325874.17164.32.camel@amilo \
--to=mitr@redhat.com \
--cc=linux-audit@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.