Search notes:

/proc/sys/kernel/yama/ptrace_scope

The default value of 1 blocks non-child ptrace.
A value of 0 allows for the more premissive behavior.

See also

The CAP_SYS_PTRACE capability.
ptrace,
Yama

Index