Skip to content

Commit b3b4fdf

Browse files
committed
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>
1 parent 80ab4df commit b3b4fdf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/audit.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int audit_initialized;
8686
#define AUDIT_ON 1
8787
#define AUDIT_LOCKED 2
8888
u32 audit_enabled = AUDIT_OFF;
89-
u32 audit_ever_enabled = !!AUDIT_OFF;
89+
bool audit_ever_enabled = !!AUDIT_OFF;
9090

9191
EXPORT_SYMBOL_GPL(audit_enabled);
9292

‎kernel/audit.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ struct audit_context {
208208
struct audit_proctitle proctitle;
209209
};
210210

211-
extern u32 audit_ever_enabled;
211+
extern bool audit_ever_enabled;
212212

213213
extern void audit_copy_inode(struct audit_names *name,
214214
const struct dentry *dentry,

0 commit comments

Comments
 (0)