Commit 5413fcdb authored by Salvatore Mesoraca's avatar Salvatore Mesoraca Committed by James Morris

Adding YAMA hooks also when YAMA is not stacked.

Without this patch YAMA will not work at all if it is chosen
as the primary LSM instead of being "stacked".
Signed-off-by: default avatarSalvatore Mesoraca <s.mesoraca16@gmail.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent 74d33293
...@@ -406,6 +406,7 @@ static __init int yama_init(void) ...@@ -406,6 +406,7 @@ static __init int yama_init(void)
*/ */
if (!security_module_enable("yama")) if (!security_module_enable("yama"))
return 0; return 0;
yama_add_hooks();
#endif #endif
pr_info("Yama: becoming mindful.\n"); pr_info("Yama: becoming mindful.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment