ptracer_capable(9)
π
ptracer_capable(9) β Kernel API Manual, bestie edition π
okay so welcome to the ptracer_capable(9) page in the Kernel API Manual, and it's literally here to do one extremely specific permission vibe check. π«Ά
β¨ NAME β¨
ptracer_capable β determine if the ptracer holds CAP_SYS_PTRACE in the namespace. π
πΈ SYNOPSIS πΈ
bool ptracer_capable (struct task_struct *tsk , struct user_namespace *ns );
π ARGUMENTS π
tskβ the task that may be ptraced. πnsβ the user namespace to search forCAP_SYS_PTRACEin. π
π¦ DESCRIPTION π¦
Return true if the task that is ptracing the current task had CAP_SYS_PTRACE in the specified user namespace. That's the whole plot, no cap. β¨
π SEE ALSO π
Kernel file ./kernel/capability.c plus these iconic neighbors:
sys_capget(9)sys_capset(9)has_ns_capability(9)has_ns_capability_noaudit(9)has_capability_noaudit(9)ns_capable(9)ns_capable_noaudit(9)ns_capable_setid(9)capable(9)capable_noaudit(9)file_ns_capable(9)privileged_wrt_inode_uidgid(9)capable_wrt_inode_uidgid(9)
mwah π β sourced from ./kernel, dated October 2026, and this ptracer_capable(9) page is officially out. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms