aa_capable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, the CAP_OPT_NOAUDIT bit 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 🧚

all of these are your besties too, go say hi πŸ’–


ok but fr fr, remember label is NOT NULL and opts' CAP_OPT_NOAUDIT bit 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