]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
audit: Make AUDIT_ANOM_ABEND event normalized
authorSteve Grubb <sgrubb@redhat.com>
Wed, 14 Dec 2016 21:00:13 +0000 (16:00 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Dec 2016 21:00:13 +0000 (16:00 -0500)
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.

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c

index f78cb1b3fa7432f405bb85c76ec19188d819c325..bb5f504592c6e368679a452d89ff0bb3f566107f 100644 (file)
@@ -2411,7 +2411,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);
 }