提交 b3b4fdf6 编写于 作者: P Paul Moore

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: NRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: NPaul Moore <paul@paul-moore.com>
上级 80ab4df6
...@@ -86,7 +86,7 @@ static int audit_initialized; ...@@ -86,7 +86,7 @@ static int audit_initialized;
#define AUDIT_ON 1 #define AUDIT_ON 1
#define AUDIT_LOCKED 2 #define AUDIT_LOCKED 2
u32 audit_enabled = AUDIT_OFF; u32 audit_enabled = AUDIT_OFF;
u32 audit_ever_enabled = !!AUDIT_OFF; bool audit_ever_enabled = !!AUDIT_OFF;
EXPORT_SYMBOL_GPL(audit_enabled); EXPORT_SYMBOL_GPL(audit_enabled);
......
...@@ -208,7 +208,7 @@ struct audit_context { ...@@ -208,7 +208,7 @@ struct audit_context {
struct audit_proctitle proctitle; struct audit_proctitle proctitle;
}; };
extern u32 audit_ever_enabled; extern bool audit_ever_enabled;
extern void audit_copy_inode(struct audit_names *name, extern void audit_copy_inode(struct audit_names *name,
const struct dentry *dentry, const struct dentry *dentry,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册