mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
committed by
Paul Moore
parent
f0b752168d
commit
cdfb6b341f
@@ -447,7 +447,7 @@ void common_lsm_audit(struct common_audit_data *a,
|
||||
if (a == NULL)
|
||||
return;
|
||||
/* we use GFP_ATOMIC so we won't sleep */
|
||||
ab = audit_log_start(current->audit_context, GFP_ATOMIC | __GFP_NOWARN,
|
||||
ab = audit_log_start(audit_context(), GFP_ATOMIC | __GFP_NOWARN,
|
||||
AUDIT_AVC);
|
||||
|
||||
if (ab == NULL)
|
||||
|
Reference in New Issue
Block a user