Skip to main content

ptrace_usable

Function ptrace_usable 

Source
pub fn ptrace_usable() -> bool
Expand description

Whether ptrace can be used from here.

PTRACE_PEEKUSER on a process that is not a tracee fails with ESRCH once the kernel reaches the request; a seccomp policy that filters the syscall answers with its own errno before that.