]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
audit: tie ANOM_ABEND records to syscall
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 31 May 2018 20:28:12 +0000 (16:28 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Jun 2018 14:30:05 +0000 (10:30 -0400)
Since core dump events are triggered by user activity, tie the
ANOM_ABEND record to the syscall record to collect all records from the
same event.

See: https://github.com/linux-audit/audit-kernel/issues/88

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c

index fefb9e215cd0b559b0557140c53b676d0cdb71f1..5f0bd5ece578e97e324a54479297c531482674cc 100644 (file)
@@ -2461,7 +2461,7 @@ void audit_core_dumps(long signr)
        if (signr == SIGQUIT)   /* don't care for those */
                return;
 
-       ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_ANOM_ABEND);
+       ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_ANOM_ABEND);
        if (unlikely(!ab))
                return;
        audit_log_task(ab);