$RodHat_/search
capabilities reference

CAP_SYS_PTRACE

Trace arbitrary processes with ptrace; read and write other processes' memory.

Bit number
19
Mask in /proc/PID/status
0000000000080000
Added in Linux
Original 2.2 set
Group
Tracing, performance and checkpoint

Covers ptrace(2), process_vm_readv and process_vm_writev on arbitrary processes, and kcmp. gdb, strace and perf attach need it for processes you do not own. Yama's kernel.yama.ptrace_scope restricts ptrace between unrelated processes even for the same UID, separate from this capability.

Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.

Syscall cards that mention it

  • userfaultfd(2)Linux · Memory

    Create an fd that lets userspace resolve page faults on registered memory ranges.

  • kcmp(2)Linux · Processes

    Compare whether two resources in different processes refer to the same kernel object.

Sources

  1. capabilities(7), Linux man-pages
  2. user_namespaces(7), Linux man-pages

Bit numbers are from linux/capability.h. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.