Skip to content

Commit

Permalink
Adding YAMA hooks also when YAMA is not stacked.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
smeso authored and James Morris committed Aug 3, 2015
1 parent 74d3329 commit 5413fcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/yama/yama_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 5413fcd

Please sign in to comment.