Skip to contentSkip to conversation

audit: Make AUDIT_ANOM_ABEND event normalized

PATCH In review Steve Grubb 2 participants 2 messages Dec 8, 2016 – Dec 9, 2016 Audit

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audit: Make AUDIT_ANOM_ABEND event normalized

The audit event specification asks for certain fields to exist in all events. Running 'ausearch -m anom_abend -sv yes' returns no events. This patch adds the result field so that the AUDIT_ANOM_ABEND event conforms to the rules.

---
 kernel/auditsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/auditsc.c +1 -1
index 5abf1dc..4317f5b 100644
@@ -2403,7 +2403,7 @@ void audit_core_dumps(long signr)
 	if (unlikely(!ab))
 		return;
 	audit_log_task(ab);
-	audit_log_format(ab, " sig=%ld", signr);
+	audit_log_format(ab, " sig=%ld res=1", signr);
 	audit_log_end(ab);
 }
 
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 9 lines · Steve Grubb

The audit event specification asks for certain fields to exist in all events. Running 'ausearch -m anom_abend -sv yes' returns no events. This patch adds the result field so that the AUDIT_ANOM_ABEND event conforms to the rules.

---
 kernel/auditsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Looks good to me, added to the queue of patches to merge after the upcoming merge window.

Quoted 21 lines
kernel/auditsc.c +1 -2
index 5abf1dc..4317f5b 100644
@@ -2403,7 +2403,7 @@ void audit_core_dumps(long signr)
        if (unlikely(!ab))
                return;
        audit_log_task(ab);
-       audit_log_format(ab, " sig=%ld", signr);
+       audit_log_format(ab, " sig=%ld res=1", signr);
        audit_log_end(ab);
 }
 
--

2.7.4

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Signature · 2 lines
paul moore
www.paul-moore.com