1
0
Fork 0

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: Salvatore Mesoraca <s.mesoraca16@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
hifive-unleashed-5.1
Salvatore Mesoraca 2015-08-03 12:40:51 +02:00 committed by James Morris
parent 74d33293e4
commit 5413fcdbe9
1 changed files with 1 additions and 0 deletions

View File

@ -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");