From: Peng Haitao <penght@cn.fujitsu.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: audit-list <linux-audit@redhat.com>
Subject: [PATCH] Fix a bug of producing summary reports of the log which type is MAC_IPSEC_EVENT
Date: Mon, 01 Sep 2008 14:49:27 +0800 [thread overview]
Message-ID: <48BB9077.9010300@cn.fujitsu.com> (raw)
Hello steve,
the log which type is MAC_IPSEC_EVENT, MAC_UNLBL_STCADD or MAC_UNLBL_STCDEL, aureport cannot report it.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
---
src/aureport-scan.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/aureport-scan.c b/src/aureport-scan.c
index 0d880b0..7803430 100644
--- a/src/aureport-scan.c
+++ b/src/aureport-scan.c
@@ -447,7 +447,7 @@ static int per_event_detailed(llist *l)
if (report_detail == D_DETAILED) {
if (list_find_msg_range(l,
AUDIT_MAC_POLICY_LOAD,
- AUDIT_MAC_IPSEC_DELSPD)) {
+ AUDIT_MAC_UNLBL_STCDEL)) {
print_per_event_item(l);
rc = 1;
} else {
@@ -472,7 +472,7 @@ static int per_event_detailed(llist *l)
rc = 1;
} else if (list_find_msg_range(l,
AUDIT_MAC_POLICY_LOAD,
- AUDIT_MAC_IPSEC_DELSPD)) {
+ AUDIT_MAC_UNLBL_STCDEL)) {
print_per_event_item(l);
rc = 1;
}
@@ -684,7 +684,7 @@ static void do_summary_total(llist *l)
sd.changes++;
list_first(l);
if (list_find_msg_range(l, AUDIT_MAC_POLICY_LOAD,
- AUDIT_MAC_IPSEC_DELSPD))
+ AUDIT_MAC_UNLBL_STCDEL))
sd.changes++;
// add acct changes
@@ -774,7 +774,7 @@ static void do_summary_total(llist *l)
// MAC
list_first(l);
if (list_find_msg_range(l, AUDIT_MAC_POLICY_LOAD,
- AUDIT_MAC_IPSEC_DELSPD))
+ AUDIT_MAC_UNLBL_STCDEL))
sd.mac++;
if (list_find_msg_range(l, AUDIT_FIRST_USER_LSPP_MSG,
AUDIT_LAST_USER_LSPP_MSG))
--
1.5.3
--
Regards
Peng Haitao
next reply other threads:[~2008-09-01 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 6:49 Peng Haitao [this message]
2008-09-01 13:17 ` [PATCH] Fix a bug of producing summary reports of the log which type is MAC_IPSEC_EVENT 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=48BB9077.9010300@cn.fujitsu.com \
--to=penght@cn.fujitsu.com \
--cc=linux-audit@redhat.com \
--cc=sgrubb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox