module/lsm: Have apparmor module parameters work with no args
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 20 Aug 2013 06:03:20 +0000 (15:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Aug 2013 06:07:44 +0000 (15:37 +0930)
commit5265fc6219ddbf8dfc9b18223448a4997fb06eae
treed6b0dca1389c126757eb1f629799f0973dfb4ffb
parent0ce814096f388f6801587f01c1c5ee1d04e746b3
module/lsm: Have apparmor module parameters work with no args

The apparmor module parameters for param_ops_aabool and
param_ops_aalockpolicy are both based off of the param_ops_bool,
and can handle a NULL value passed in as val. Have it enable the
new KERNEL_PARAM_FL_NOARGS flag to allow the parameters to be set
without having to state "=y" or "=1".

Cc: John Johansen <john.johansen@canonical.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
security/apparmor/lsm.c