smk_ptrace_rule_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smk_ptrace_rule_check(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes this is one of those pages, straight out of the Smack security module, and no cap it's a lil helper that's doing the most important gatekeeping of your entire life rn πŸŽ€


🌸 NAME 🌸

smk_ptrace_rule_check β€” the helper for ptrace access, aka the bouncer at the ptrace club πŸ’…


✨ SYNOPSIS ✨

int smk_ptrace_rule_check (struct task_struct *tracer , struct
       smack_known *tracee_known , unsigned int mode , const char *func );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • tracer β€” the tracer process. the one doing the tracing. the nosy one. πŸ‘€
  • tracee_known β€” label entry of the process that's about to be traced. it's giving "who's about to get looked at" energy 🫢
  • mode β€” the ptrace attachment mode, and it's a PTRACE_MODE_* situation, iykyk
  • func β€” name of the function that called us. purely for audit purposes, so like… receipts. main character energy πŸ”₯

πŸ’– DESCRIPTION πŸ’–

Returns 0 on access granted, -error on error. that's it. that's the whole vibe check ⭐

fr fr, that's literally it β€” 0 means yes bestie, -error means no πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/smack/smack_lsm.c β€” and like, the entire Smack cinematic universe, honestly. grab a snack, this list is long πŸ“

the ptrace / access-check girlies:

the filesystem / superblock besties:

the inode crew (there are SO many of them):

the file ops squad:

the cred / task girlies:

the network / socket icons 🌈:

the IPC / SysV crew:

the procattr / selfattr besties:

the key ring + audit + misc icons πŸ‘‘:


and that's the whole page, bestie 🧚 literally every single one of those references made it, no cap πŸ’œ

πŸ’– that's a wrap on smk_ptrace_rule_check(9) πŸ’– β€” brought to you by the fine folks hanging out in ./security/smack, stamped October 2026, page smk_ptrace_rule_check(9). go forth and trace responsibly, mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from