yama_ptrace_traceme(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the Kernel API Manual page for yama_ptrace_traceme β€” its whole job is to validate PTRACE_TRACEME calls πŸ’…βœ¨

🌸 SYNOPSIS 🌸

the signature is giving main character energy:

int yama_ptrace_traceme (struct task_struct *parent );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the task that will become the ptracer of the current task 🫢

πŸ’– DESCRIPTION πŸ’–

okay so the return value is the whole moment here: it returns 0 if following the ptrace is allowed, and -ve on error. that’s literally it, no cap πŸ˜­πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the Kernel file: ./security/yama/yama_lsm.c πŸ“βœ¨

then the whole squad:


mwah πŸ’‹ source/version: ./security/yama Β· date: October 2026 Β· page: yama_ptrace_traceme(9) πŸŽ€

πŸ“¦ where this page comes from