diff options
author | Kees Cook <keescook@chromium.org> | 2015-07-23 18:02:48 -0700 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2015-07-28 13:18:19 +1000 |
commit | 730daa164e7c7e31c08fab940549f4acc3329432 (patch) | |
tree | 8c125b404c785f8de46a04d4f43fccef6744f0a8 /security/security.c | |
parent | fe6c59dc17908effd4e2caa666795b9ad984005b (diff) | |
download | op-kernel-dev-730daa164e7c7e31c08fab940549f4acc3329432.zip op-kernel-dev-730daa164e7c7e31c08fab940549f4acc3329432.tar.gz |
Yama: remove needless CONFIG_SECURITY_YAMA_STACKED
Now that minor LSMs can cleanly stack with major LSMs, remove the unneeded
config for Yama to be made to explicitly stack. Just selecting the main
Yama CONFIG will allow it to work, regardless of the major LSM. Since
distros using Yama are already forcing it to stack, this is effectively
a no-op change.
Additionally add MAINTAINERS entry.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/security/security.c b/security/security.c index 595fffa..e693ffc 100644 --- a/security/security.c +++ b/security/security.c @@ -56,18 +56,13 @@ int __init security_init(void) pr_info("Security Framework initialized\n"); /* - * Always load the capability module. + * Load minor LSMs, with the capability module always first. */ capability_add_hooks(); -#ifdef CONFIG_SECURITY_YAMA_STACKED - /* - * If Yama is configured for stacking load it next. - */ yama_add_hooks(); -#endif + /* - * Load the chosen module if there is one. - * This will also find yama if it is stacking + * Load all the remaining security modules. */ do_security_initcalls(); |