has_ns_capability_noaudit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… has_ns_capability_noaudit(9)

okay so bestie, you're in the Kernel API Manual (the 9 section, kernel devs only, iykyk) and this page is literally about has_ns_capability_noaudit πŸŽ€


✨ NAME ✨

has_ns_capability_noaudit β€” basically: does this task have a capability (unaudited, so no receipts πŸ‘€) in one specific user namespace?


🌸 SYNOPSIS 🌸

bool has_ns_capability_noaudit (struct task_struct *t , struct
user_namespace *ns , int cap );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • t β€” the task in question, like the actual task you're checking up on 🫢
  • ns β€” the target user namespace, aka where you're looking
  • cap β€” the capability you wanna test for, the whole point of the vibe check

πŸ’– DESCRIPTION πŸ’–

Returns true if the specified task has the given superior capability currently in effect to the specified user namespace β€” and false if not. Simple as that, no cap ✨

And the noaudit part? It does not write an audit message for the check. Like, nothing gets logged, this is a whisper not an announcement 🀫

Heads up bestie: this does not set PF_SUPERPRIV on the task. So don't go assuming it does, fr fr πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, you ate that πŸ“ this one's living in ./kernel and it's dated October 2026 β€” go be iconic with your capabilities, mwah πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from