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>
此提交包含在:
@@ -104,7 +104,7 @@ struct audit_buffer *netlbl_audit_start_common(int type,
|
||||
if (audit_enabled == 0)
|
||||
return NULL;
|
||||
|
||||
audit_buf = audit_log_start(current->audit_context, GFP_ATOMIC, type);
|
||||
audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, type);
|
||||
if (audit_buf == NULL)
|
||||
return NULL;
|
||||
|
||||
|
新增問題並參考
封鎖使用者