mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
audit: Convert int limit uses to u32
The equivalent uapi struct uses __u32 so make the kernel uses u32 too. This can prevent some oddities where the limit is logged/emitted as a negative value. Convert kstrtol to kstrtouint to disallow negative values. Signed-off-by: Joe Perches <joe@perches.com> [eparis: do not remove static from audit_default declaration]
This commit is contained in:
parent
d957f7b726
commit
3e1d0bb622
3 changed files with 27 additions and 26 deletions
|
@ -465,7 +465,7 @@ extern int audit_rule_change(int type, __u32 portid, int seq,
|
|||
void *data, size_t datasz);
|
||||
extern int audit_list_rules_send(__u32 portid, int seq);
|
||||
|
||||
extern int audit_enabled;
|
||||
extern u32 audit_enabled;
|
||||
#else /* CONFIG_AUDIT */
|
||||
static inline __printf(4, 5)
|
||||
void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue