LSM: Fix security_module_enable() error.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sat, 28 Aug 2010 05:58:44 +0000 (14:58 +0900)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:34 +0000 (10:12 +1100)
commit065d78a0603cc6f8d288e96dbf761b96984b634f
treeb95d865a91a6895d54b7b6486ebeb3b40bf2648e
parentdaa6d83a2863c28197b0c7dabfdf1e0606760b78
LSM: Fix security_module_enable() error.

We can set default LSM module to DAC (which means "enable no LSM module").
If default LSM module was set to DAC, security_module_enable() must return 0
unless overridden via boot time parameter.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Serge E. Hallyn <serge@hallyn.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/security.c