summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2018-06-05 19:20:39 -0400
committerPaul Moore <paul@paul-moore.com>2018-06-19 10:43:55 -0400
commitf7859590d97614815b35a755c8213dfb8f2766bd (patch)
tree94bb23b92b5ce6c2f24fb5acc187a1bbd8318c5f /kernel/audit.c
parentd904ac0320d3c4ff4e9d80e4294ca5dde803696f (diff)
downloadtalos-op-linux-f7859590d97614815b35a755c8213dfb8f2766bd.tar.gz
talos-op-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 'kernel/audit.c')
-rw-r--r--kernel/audit.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 5c0a1d7b0c7b..0f3222e4edde 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -83,9 +83,6 @@
#define AUDIT_INITIALIZED 1
static int audit_initialized;
-#define AUDIT_OFF 0
-#define AUDIT_ON 1
-#define AUDIT_LOCKED 2
u32 audit_enabled = AUDIT_OFF;
bool audit_ever_enabled = !!AUDIT_OFF;
OpenPOWER on IntegriCloud