summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/ptrace.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/abi/linux/ptrace.go')
-rw-r--r--pkg/abi/linux/ptrace.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/abi/linux/ptrace.go b/pkg/abi/linux/ptrace.go
index 23e605ab2..db1c6a0d8 100644
--- a/pkg/abi/linux/ptrace.go
+++ b/pkg/abi/linux/ptrace.go
@@ -87,3 +87,9 @@ const (
PTRACE_O_EXITKILL = 1 << 20
PTRACE_O_SUSPEND_SECCOMP = 1 << 21
)
+
+// YAMA ptrace_scope levels from security/yama/yama_lsm.c.
+const (
+ YAMA_SCOPE_DISABLED = 0
+ YAMA_SCOPE_RELATIONAL = 1
+)