Re: [PATCH 2/2] audit: Convert int limit uses to u32

2014-01-14 Thread Eric Paris
On Tue, 2014-01-14 at 10:33 -0800, Joe Perches wrote: > 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. > diff --gi

Re: [PATCH 2/2] audit: Convert int limit uses to u32

2014-01-14 Thread Joe Perches
On Tue, 2014-01-14 at 14:07 -0500, Eric Paris wrote: > On Tue, 2014-01-14 at 10:33 -0800, Joe Perches wrote: > > The equivalent uapi struct uses __u32 so make the kernel > > uses u32 too. [] > > diff --git a/kernel/audit.c b/kernel/audit.c [] > > @@ -79,16 +79,16 @@ static int audit_initialize

[PATCH 2/2] audit: Convert int limit uses to u32

2014-01-14 Thread Joe Perches
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 --- include/linux/audit.h | 2 +- kernel/audit.c