smk_ptrace_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to smk_ptrace_mode(9) from the Kernel API Manual β€” literally the helper function for converting PTRACE_MODE_* into MAY_*. It’s giving tiny translator with main character energy πŸ’…


πŸ’… NAME πŸ’…

smk_ptrace_mode β€” the helper function for converting PTRACE_MODE_* into MAY_*. That’s the whole assignment, no cap.


✨ SYNOPSIS ✨

unsigned int smk_ptrace_mode (unsigned int mode );

πŸŽ€ ARGUMENTS πŸŽ€

  • mode β€” the input mode, in the form of PTRACE_MODE_*. That’s the vibe it expects, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

It returns a converted MAY_* mode that’s usable by smack rules. That’s the glow-up: PTRACE_MODE_* goes in, a MAY_* mode comes out, and smack rules can use it. Obsessed πŸ’–


🌸 SEE ALSO 🌸

Kernel file ./security/smack/smack_lsm.c β€” and the whole iconic group chat is:


sign-off time, bestie πŸ’– this little page lives under source/version ./security/smack, dated October 2026, and it’s all about smk_ptrace_mode(9). mwah 🫢

πŸ“¦ where this page comes from