Skip to contentSkip to conversation

Adding YAMA hooks also when YAMA is not stacked.

PATCH Superseded Salvatore Mesoraca 1 participant 1 message Aug 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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".

---
V1->V2:
Tabs issue fixed.

---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)
security/yama/yama_lsm.c +1 -0
index 9ed3250..5ebb896 100644
@@ -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");
 

--
2.3.6