diff options
author | Paul Moore <paul@paul-moore.com> | 2017-09-01 09:44:57 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-11-10 16:07:54 -0500 |
commit | b3b4fdf6a8ae9ea51ea274e3f2f8a6a58b98cc0b (patch) | |
tree | cd3af40b2208c29c162dd03655f4d3b5e2622ea5 | |
parent | 80ab4df62706b882922c3bb0b05ce2c8ab10828a (diff) |
audit: convert audit_ever_enabled to a boolean
We were treating it as a boolean, let's make it a boolean to help
avoid future mistakes.
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | kernel/audit.c | 2 | ||||
-rw-r--r-- | kernel/audit.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index e75918f79a83..f0cf9bfc806c 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -86,7 +86,7 @@ static int audit_initialized; | |||
86 | #define AUDIT_ON 1 | 86 | #define AUDIT_ON 1 |
87 | #define AUDIT_LOCKED 2 | 87 | #define AUDIT_LOCKED 2 |
88 | u32 audit_enabled = AUDIT_OFF; | 88 | u32 audit_enabled = AUDIT_OFF; |
89 | u32 audit_ever_enabled = !!AUDIT_OFF; | 89 | bool audit_ever_enabled = !!AUDIT_OFF; |
90 | 90 | ||
91 | EXPORT_SYMBOL_GPL(audit_enabled); | 91 | EXPORT_SYMBOL_GPL(audit_enabled); |
92 | 92 | ||
diff --git a/kernel/audit.h b/kernel/audit.h index b331d9b83f63..6bdaf6bd377e 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -208,7 +208,7 @@ struct audit_context { | |||
208 | struct audit_proctitle proctitle; | 208 | struct audit_proctitle proctitle; |
209 | }; | 209 | }; |
210 | 210 | ||
211 | extern u32 audit_ever_enabled; | 211 | extern bool audit_ever_enabled; |
212 | 212 | ||
213 | extern void audit_copy_inode(struct audit_names *name, | 213 | extern void audit_copy_inode(struct audit_names *name, |
214 | const struct dentry *dentry, | 214 | const struct dentry *dentry, |