From: Salvatore Mesoraca Date: Mon, 3 Aug 2015 10:40:51 +0000 (+0200) Subject: Adding YAMA hooks also when YAMA is not stacked. X-Git-Tag: v4.9.8~3808^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5413fcdbe9e7ca32ce3f00fd5251dfa560b7484b;p=platform%2Fkernel%2Flinux-rpi3.git 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 Acked-by: Kees Cook Signed-off-by: James Morris --- diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 9ed3250..5ebb896 100644 --- a/security/yama/yama_lsm.c +++ b/security/yama/yama_lsm.c @@ -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");