Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1198712 > unrolled thread

[PATCH V2] Adding YAMA hooks also when YAMA is not stacked.

Started bySalvatore Mesoraca <s.mesoraca16@gmail.com>
First post2015-08-03 12:30 +0200
Last post2015-08-03 12:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH V2] Adding YAMA hooks also when YAMA is not stacked. Salvatore Mesoraca <s.mesoraca16@gmail.com> - 2015-08-03 12:30 +0200

#1198712 — [PATCH V2] Adding YAMA hooks also when YAMA is not stacked.

FromSalvatore Mesoraca <s.mesoraca16@gmail.com>
Date2015-08-03 12:30 +0200
Subject[PATCH V2] Adding YAMA hooks also when YAMA is not stacked.
Message-ID<pTlai-fp-17@gated-at.bofh.it>
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>
---
V1->V2:
	Tabs issue fixed.
---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)

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

--
2.3.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web