projects/linux·commit 5413fcdb

Adding YAMA hooks also when YAMA is not stacked.

5413fcdb · Salvatore Mesoraca <[email protected]> · 2015-08-03 12:40:51 +02:00

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]>
Commit
5413fcdbe9e7ca32ce3f00fd5251dfa560b7484b
Parents
74d33293

Changes

1 files changed · +1 −0

FileStatusAddDelContent
security/yama/yama_lsm.cmodified+1−0View file

security/yama/yama_lsm.c

View file
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");