projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d3329
)
Adding YAMA hooks also when YAMA is not stacked.
author
Salvatore Mesoraca
<s.mesoraca16@gmail.com>
Mon, 3 Aug 2015 10:40:51 +0000
(12:40 +0200)
committer
James Morris
<james.l.morris@oracle.com>
Mon, 3 Aug 2015 15:36:18 +0000
(
01:36
+1000)
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>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/yama/yama_lsm.c
patch
|
blob
|
history
diff --git
a/security/yama/yama_lsm.c
b/security/yama/yama_lsm.c
index 9ed32502470e9bc1d776d5d925ee48be587baa17..5ebb8968793670d6a23ee6e6d2b30df6243a63ca 100644
(file)
--- 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");