diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2018-05-13 04:58:20 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-05-15 00:24:18 +0300 |
commit | cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5 (patch) | |
tree | cb31684487723bae90c53e58d97b7b9e6aa53020 /include/net/xfrm.h | |
parent | f0b752168d7091f38e7d61a80de2542e8b71d266 (diff) | |
download | linux-cdfb6b341f0f2409aba24b84f3b4b2bba50be5c5.tar.xz |
audit: use inline function to get audit context
Recognizing that the audit context is an internal audit value, use an
access function to retrieve the audit context pointer for the task
rather than reaching directly into the task struct to get it.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: merge fuzz in auditsc.c and selinuxfs.c, checkpatch.pl fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index fcce8eef6c70..7f2e31aa3d65 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -736,7 +736,7 @@ static inline struct audit_buffer *xfrm_audit_start(const char *op) if (audit_enabled == 0) return NULL; - audit_buf = audit_log_start(current->audit_context, GFP_ATOMIC, + audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, AUDIT_MAC_IPSEC_EVENT); if (audit_buf == NULL) return NULL; |