diff options
author | Joe Perches <joe@perches.com> | 2014-01-14 13:33:13 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-14 14:54:00 -0500 |
commit | 3e1d0bb6224f019893d1c498cc3327559d183674 (patch) | |
tree | cf64e0a4eefbe17851a56b21c16783e023860577 /kernel/audit.h | |
parent | d957f7b726ccce4967ae0d668b5b10f0f1d10401 (diff) |
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]
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 0719b4547221..57cc64d67718 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -209,7 +209,7 @@ struct audit_context { | |||
209 | #endif | 209 | #endif |
210 | }; | 210 | }; |
211 | 211 | ||
212 | extern int audit_ever_enabled; | 212 | extern u32 audit_ever_enabled; |
213 | 213 | ||
214 | extern void audit_copy_inode(struct audit_names *name, | 214 | extern void audit_copy_inode(struct audit_names *name, |
215 | const struct dentry *dentry, | 215 | const struct dentry *dentry, |