has_ns_capability_noaudit(9)
π 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 lookingcapβ 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 π₯
- Kernel file
./kernel/capability.c sys_capget(9)sys_capset(9)has_ns_capability(9)has_capability_noaudit(9)ns_capable(9)ns_capable_noaudit(9)ns_capable_setid(9)capable(9)capable_noaudit(9)file_ns_capable(9)privileged_wrt_inode_uidgid(9)capable_wrt_inode_uidgid(9)ptracer_capable(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms