yama_ptrace_access_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ yama_ptrace_access_check(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” yes, the actual kernel, like the big one πŸ’… this page is all about yama_ptrace_access_check, and ngl it's a whole mood.


🌸 NAME 🌸

yama_ptrace_access_check β€” literally here to validate PTRACE_ATTACH calls, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int yama_ptrace_access_check (struct task_struct *child , unsigned int
mode );

πŸŽ€ ARGUMENTS πŸŽ€

  • child β€” the task that the current task is attempting to ptrace πŸ‘€ like, this is the one being peeked at
  • mode β€” the ptrace attach mode, the whole vibe of the attach fr

πŸ’– DESCRIPTION πŸ’–

So what does it do?? It returns 0 if following the ptrace is allowed ✨ and a -ve value on error πŸ’€ that's it, that's the whole function, iconic behaviour honestly.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./security/yama/yama_lsm.c (go read it, iykyk) plus the whole squad:


bestie reminder: 0 means yes you may, negative means nope πŸ’… don't mix those up

that's the page!! ty for reading, mwah πŸ“ this came straight out of ./security/yama and it's dated October 2026 β€” slay, see u next manual πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from