yama: Disable by default
authorBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2013 03:35:28 +0000 (04:35 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 12 Aug 2025 03:28:04 +0000 (05:28 +0200)
Bug-Debian: https://bugs.debian.org/712740
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name yama-disable-by-default.patch

security/yama/yama_lsm.c

index e1a5e13ea269d4917fe2c78cb79f1d44881653c2..5c108316ae0c1e6cbd8c086a228bcd1f45446fe3 100644 (file)
@@ -25,7 +25,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 {
@@ -476,7 +476,7 @@ static inline void yama_init_sysctl(void) { }
 
 static int __init yama_init(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_lsmid);
        yama_init_sysctl();
        return 0;