ns_capable_noaudit(9)
π ns_capable_noaudit β like, the kernel API manual, bestie β¨
okay so real quick, this is ns_capable_noaudit(9) from the Kernel API Manual and honestly? she's a lil icon. let's get into it π«Ά
β¨ NAME β¨
ns_capable_noaudit β bestie, this is how you determine if the current task has a superior capability (unaudited) in effect. yes that's the whole vibe check π
π¦ SYNOPSIS π¦
bool ns_capable_noaudit (struct user_namespace *ns , int cap );
literally just two args, no cap. so clean. π
πΈ ARGUMENTS πΈ
nsβ the usernamespace we want the capability in π this is the namespace you're like "hey does this work in here" aboutcapβ the capability to be tested for π₯ the actual thing you're asking about, bestie
π DESCRIPTION π
Return true if the current task has the given superior capability currently available for use, false if not. simple as that, no notes β¨
and okay, the juicy part: this sets PF_SUPERPRIV on the task if the capability is available β on the assumption that it's about to be used. like it's literally manifesting that you're gonna use it π so it's marking you as privileged in advance.
π reminder bestie: it's the unaudited one β the name says it, PF_SUPERPRIV gets set, and it assumes the capability is about to be used. don't forget that part, iykyk π
π§ SEE ALSO π§
Kernel file ./kernel/capability.c and honestly the whole friend group:
sys_capget(9)sys_capset(9)has_ns_capability(9)has_ns_capability_noaudit(9)has_capability_noaudit(9)ns_capable(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)
like. the whole squad showed up. obsessed ππ
and that's the page, bestie π this lil run came out of ./kernel, dated October 2026, and it's ns_capable_noaudit(9) all the way down. 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