summaryrefslogtreecommitdiffstats
path: root/net/netlabel
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2018-06-06 01:20:39 +0200
committerPaul Moore <paul@paul-moore.com>2018-06-19 16:43:55 +0200
commitf7859590d97614815b35a755c8213dfb8f2766bd (patch)
tree94bb23b92b5ce6c2f24fb5acc187a1bbd8318c5f /net/netlabel
parentaudit: rename FILTER_TYPE to FILTER_EXCLUDE (diff)
downloadlinux-f7859590d97614815b35a755c8213dfb8f2766bd.tar.xz
linux-f7859590d97614815b35a755c8213dfb8f2766bd.zip
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 <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'net/netlabel')
-rw-r--r--net/netlabel/netlabel_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlabel/netlabel_user.c b/net/netlabel/netlabel_user.c
index 2f328af91a52..4676f5bb16ae 100644
--- a/net/netlabel/netlabel_user.c
+++ b/net/netlabel/netlabel_user.c
@@ -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);