From: Ben Hutchings Date: Wed, 19 Jun 2013 03:35:28 +0000 (+0100) Subject: yama: Disable by default X-Git-Tag: archive/raspbian/4.9.82-1+deb9u3+rpi1_jessie~8^2~111 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7422df73f73b54ead83cc0dd3cefa220735e443;p=linux-4.9.git yama: Disable by default Gbp-Pq: Topic debian Gbp-Pq: Name yama-disable-by-default.patch --- diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 0309f2111c70..d1bef16b7cb6 100644 --- a/security/yama/yama_lsm.c +++ b/security/yama/yama_lsm.c @@ -28,7 +28,7 @@ #define YAMA_SCOPE_CAPABILITY 2 #define YAMA_SCOPE_NO_ATTACH 3 -static int ptrace_scope = YAMA_SCOPE_RELATIONAL; +static int ptrace_scope = YAMA_SCOPE_DISABLED; /* describe a ptrace relationship for potential exception */ struct ptrace_relation { @@ -470,7 +470,7 @@ static inline void yama_init_sysctl(void) { } void __init yama_add_hooks(void) { - pr_info("Yama: becoming mindful.\n"); + pr_info("Yama: disabled by default; enable with sysctl kernel.yama.*\n"); security_add_hooks(yama_hooks, ARRAY_SIZE(yama_hooks)); yama_init_sysctl(); }