Skip to content

Commit 5413fcd

Browse files
smesoJames Morris
authored and
James Morris
committed
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 <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent 74d3329 commit 5413fcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/yama/yama_lsm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static __init int yama_init(void)
406406
*/
407407
if (!security_module_enable("yama"))
408408
return 0;
409+
yama_add_hooks();
409410
#endif
410411
pr_info("Yama: becoming mindful.\n");
411412

0 commit comments

Comments
 (0)