aa_capable(9)
π aa_capable(9) β like, the Kernel API Manual era π
okay bestie, gather round, because we're looking at aa_capable from the Kernel API Manual and honestly? she's a little legend. the whole girlboss job here is testing permission to use a capability. that's it, that's the vibe check β¨
πΈ SYNOPSIS πΈ
int aa_capable (const struct cred *subj_cred , struct aa_label *label ,
int cap , unsigned int opts );
no cap, that's the whole signature. read it, love it, memorize it π«Ά
π¦ ARGUMENTS π¦
subj_credβ the cred we're testing the capability against, iykyk πlabelβ the label being tested for the capability. and listen: this one is NOT NULL, so don't even try it πcapβ the actual capability being tested, the main character of this whole operation πoptsβ it's giving options. specifically, theCAP_OPT_NOAUDITbit decides whether an audit record gets generated or not π₯
π DESCRIPTION π
so what does she do? she looks up the capability in the profile capability set. literally that's it. cute, efficient, slay β
π RETURN π
0 on success β periodt π
or else an error code, which, when it happens, is lowkey devastating but we move π
π§ SEE ALSO π§
- Kernel file
./security/apparmor/capability.c audit_cb(9)audit_caps(9)profile_capable(9)
all of these are your besties too, go say hi π
ok but fr fr, rememberlabelis NOT NULL andopts'CAP_OPT_NOAUDITbit is the whole audit-or-no-audit situation. don't forget, bestie π«Ά
and that's the page! brought to you by ./security/apparmor in October 2026, aa_capable(9) era β stay iconic, drink water, and may all your capabilities return 0 πΈπβ¨
π¦ 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