mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
audit: eliminate audit_enabled magic number comparison
Remove comparison of audit_enabled to magic numbers outside of audit. Related: https://github.com/linux-audit/audit-kernel/issues/86 Signed-off-by: Richard Guy Briggs <[email protected]> Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
parent
d904ac0320
commit
f7859590d9
6 changed files with 8 additions and 8 deletions
|
|
@ -101,7 +101,7 @@ struct audit_buffer *netlbl_audit_start_common(int type,
|
|||
char *secctx;
|
||||
u32 secctx_len;
|
||||
|
||||
if (audit_enabled == 0)
|
||||
if (audit_enabled == AUDIT_OFF)
|
||||
return NULL;
|
||||
|
||||
audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue