audit_caps(9)
β¨ NAME β¨
okay so bestie, this is audit_caps(9) from the Kernel API Manual, and it's literally the function that does one thing: audit a capability. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int audit_caps (struct apparmor_audit_data *ad , struct aa_profile
*profile , int cap , int error );
like, that's the signature, no cap. copy it exactly, don't come for me. π«Ά
π ARGUMENTS π
adβ the audit data. it's giving "the receipts."profileβ the profile being tested for confinement, and bestie it isNOT NULL. do not play with that. πcapβ the capability that got tested.errorβ the error code returned by the test. slay, now we know what happened.
π DESCRIPTION π
okay so what this function actually does: it does the auditing of a capability, and it handles the audit/complain/kill modes switching, plus duplicate message elimination. periodt. that's the whole assignment, and it ate. β¨
no extra lore, no invented side quests β those are the facts and they're iconic.
π¦ RETURN π¦
on success you get 0 or ad->error, and on failure you get an error code. simple as that, bestie. π
π SEE ALSO π
- Kernel file
./security/apparmor/capability.caudit_cb(9),profile_capable(9),aa_capable(9)β yes, all of those, exactly like that. go read them, iykyk. π
ngl, ifprofileisNULL, that's not the move. the page literally saysNOT NULL. consider this your vibe check. π
and that's the page, bestie β brought to you by ./security/apparmor and dated October 2026. mwah, go audit something cute. ππβ¨
π¦ 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