]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ba37a1844332c07e710bc6693e2e80e42c28d8d
treed6b0dca1389c126757eb1f629799f0973dfb4ffb
parent5c90baf1dd133ad17683a6920ae991a160dee479
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