apparmor: fix module parameter handling
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 15 Dec 2011 03:11:32 +0000 (13:41 +1030)
committerJames Morris <jmorris@namei.org>
Fri, 16 Dec 2011 01:45:24 +0000 (12:45 +1100)
commitb8aa09fd880eb4c2881b9f3c8a8d09c0404cd4eb
tree7a748b15df00f1338a0fba89455f202a58f53dbf
parent735e93c70434614bffac4a914ca1da72e37d43c0
apparmor: fix module parameter handling

The 'aabool' wrappers actually pass off to the 'bool' parse functions,
so you should use the same check function.  Similarly for aauint and
uint.

(Note that 'bool' module parameters also allow 'int', which is why you
got away with this, but that's changing very soon.)

Cc: linux-security-module@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/apparmor/lsm.c