]> git.karo-electronics.de Git - linux-beck.git/commit
audit: Convert int limit uses to u32
authorJoe Perches <joe@perches.com>
Tue, 14 Jan 2014 18:33:13 +0000 (10:33 -0800)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 19:54:00 +0000 (14:54 -0500)
commit3e1d0bb6224f019893d1c498cc3327559d183674
treecf64e0a4eefbe17851a56b21c16783e023860577
parentd957f7b726ccce4967ae0d668b5b10f0f1d10401
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]
include/linux/audit.h
kernel/audit.c
kernel/audit.h