yama_ptracer_add(9)
yama_ptracer_add(9) π
okay so welcome to the Kernel API Manual, bestie β manual name folded in right here, and today's main character is yama_ptracer_add(9). It's giving kernel-function energy, and we're obsessed. β¨
β¨ NAME β¨
yama_ptracer_add β add/replace an exception for this tracer/tracee pair π«Ά
πΈ SYNOPSIS πΈ
int yama_ptracer_add (struct task_struct *tracer , struct task_struct *tracee );
π ARGUMENTS π
tracerβ thetask_structof the process doing the ptrace πtraceeβ thetask_structof the process to be ptraced π¦
π DESCRIPTION π
Each tracee can have, at most, one tracer registered. no cap. Each time this is called, the prior registered tracer will be replaced for the tracee.
Returns 0 if relationship was added, -ve on error. That's the whole vibe check, bestie. π
π₯ SEE ALSO π₯
go read these too, fr fr:
- Kernel file
./security/yama/yama_lsm.cπ yama_relation_cleanup(9)yama_ptracer_del(9)yama_task_free(9)yama_task_prctl(9)task_is_descendant(9)ptracer_exception_found(9)yama_ptrace_access_check(9)yama_ptrace_traceme(9)
okay that's the whole page, bestie β brought to you by ./security/yama, dated October 2026, and it's literally the yama_ptracer_add(9) manual, periodt π
β¨
π¦ 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