Skip to content
Snippets Groups Projects
Commit 5413fcdb authored by Salvatore Mesoraca's avatar Salvatore Mesoraca Committed by James Morris
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -406,6 +406,7 @@ static __init int yama_init(void)
*/
if (!security_module_enable("yama"))
return 0;
yama_add_hooks();
#endif
pr_info("Yama: becoming mindful.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment