mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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 <[email protected]> [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
|
|
@ -209,7 +209,7 @@ struct audit_context {
|
|||
#endif
|
||||
};
|
||||
|
||||
extern int audit_ever_enabled;
|
||||
extern u32 audit_ever_enabled;
|
||||
|
||||
extern void audit_copy_inode(struct audit_names *name,
|
||||
const struct dentry *dentry,
|
||||
|
|
|
|||
Loading…
Reference in a new issue