Thread (8 messages) 8 messages, 3 authors, 2018-05-17

[PATCH ghak81 V3 1/3] audit: use new audit_context access funciton for seccomp_actions_logged

From: paul@paul-moore.com (Paul Moore)
Date: 2018-05-17 23:00:52
Also in: linux-integrity, lkml, netdev, netfilter-devel, selinux

On Wed, May 16, 2018 at 7:55 AM, Richard Guy Briggs [off-list ref] wrote:
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 <redacted>
---
 kernel/auditsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Merged into audit/next, thanks for the follow-up.
quoted hunk ↗ jump to hunk
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index cbab0da..f3d3dc6 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -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;
--
1.8.3.1
-- 
paul moore
www.paul-moore.com
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help