smk_tskacc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet smk_tskacc(9) from the Kernel API Manual β€” it's the function whose whole job is to determine if a task has a specific access to an object. periodt. ✨

✨ SYNOPSIS ✨

       int smk_tskacc (struct task_smack *tsp , struct smack_known *obj_known ,
       u32 mode , struct smk_audit_info *a );

πŸŽ€ ARGUMENTS πŸŽ€

  • tsp β€” a pointer to the subject's task. literally the task we're checking, bestie 🫢
  • obj_known β€” a pointer to the object's label entry. this is the object's label situation ✨
  • mode β€” the access requested, in "MAY" format. yes, "MAY" not "maybe" 😭
  • a β€” common audit data. the audit info buddy πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this function checks the subject task's label/object label pair in the access rule list and returns 0 if the access is permitted, non zero otherwise. πŸ’…

And yes, it allows that the task may have the capability to override the rules. so the rules aren't always the final boss, iykyk πŸ‘‘

🌈 SEE ALSO 🌈

the whole friend group, no cap:

mwah πŸ’‹ β€” source/version: ./security/smack, date: October 2026, page: smk_tskacc(9). that's the whole footer, folded into a cute lil send-off πŸŽ€βœ¨

πŸ“¦ where this page comes from