From 5413fcdbe9e7ca32ce3f00fd5251dfa560b7484b Mon Sep 17 00:00:00 2001 From: Salvatore Mesoraca Date: Mon, 3 Aug 2015 12:40:51 +0200 Subject: 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 --- security/yama/yama_lsm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'security') diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 9ed32502470e..5ebb89687936 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"); -- cgit v1.2.3