sysctl.d/00-ptrace-restricted.conf: drop from 3 to 2 (no to admin-only)

This commit is contained in:
Aminda Suomalainen 2024-07-23 15:18:35 +03:00
parent d5c7bc8160
commit 6362661113
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Only let child processes to be debugged
# https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
#kernel.yama.ptrace_scope = 1
# Disable debuggers entirely
kernel.yama.ptrace_scope = 3
# Only processes with CAP_SYS_PTRACE capability are allowed unless children
# call PTRACE_TRACEME.
kernel.yama.ptrace_scope = 2
# Disable debuggers entirely. Cannot be unset [without reboot].
#kernel.yama.ptrace_scope = 3