audit: use new audit_context access funciton for seccomp_actions_logged
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 16 May 2018 11:55:45 +0000 (07:55 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 17 May 2018 19:56:20 +0000 (15:56 -0400)
On the rebase of the following commit on the new seccomp actions_logged
function, one audit_context access was missed.

commit cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5
("audit: use inline function to get audit context")

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

index cbab0da86d1542e3400a9ee001dbf0e5de6f019e..f3d3dc652c2c40425598a5a13c497e5a6f3151ff 100644 (file)
@@ -2497,7 +2497,7 @@ void audit_seccomp_actions_logged(const char *names, const char *old_names,
        if (!audit_enabled)
                return;
 
-       ab = audit_log_start(current->audit_context, GFP_KERNEL,
+       ab = audit_log_start(audit_context(), GFP_KERNEL,
                             AUDIT_CONFIG_CHANGE);
        if (unlikely(!ab))
                return;