audit_iface(9)
π audit_iface(9) β the kernel API manual, bestie edition π
okay so real talk: this is a page from the Kernel API Manual, and the star of the show is audit_iface(9) β the little function that handles the audit message for policy unpacking / load / replace / remove. yes, all four. she contains multitudes. β¨
β¨ NAME β¨
audit_iface β do the audit message for policy unpacking/load/replace/remove. that's literally her job description and she's iconic for it π«Ά
πΈ SYNOPSIS πΈ
int audit_iface (struct aa_profile *new , const char *ns_name , const
char *name , const char *info , struct aa_ext *e , int error );
she takes six arguments. six! main character energy fr fr π
π¦ ARGUMENTS π¦
newβ the profile, but only if it's actually been allocated. it MAYBE NULL, so likeβ¦ check before you vibe with it πns_nameβ the name of the ns the profile is getting loaded to. MAY BE NULL, no pressure πnameβ the name of the profile that's being manipulated. MAYBE NULL bestie, it's optional πinfoβ any extra info about the failure. MAYBE NULL, but likeβ¦ spill the tea if you have it βeβ buffer position info. yes that's vague, that's what the page says, moving on πerrorβ the error code π₯
β RETURN β
0 or error. that's it. that's the whole return section. iconic minimalism ngl π§
π SEE ALSO π
the kernel file lives at ./security/apparmor/policy_unpack.c, and the squad β the whole friend group, no one left out π:
aa_unpack_u16_chunk(9)aa_unpack_nameX(9)unpack_dfa(9)unpack_strs_table(9)unpack_profile(9)verify_header(9)verify_dfa_accept_index(9)verify_profile(9)aa_unpack(9)
ngl if you got this far you actually read the whole page and that's so hot of you π«Ά go read the source next, iykyk
and that's a wrap!! this page came from ./security/apparmor and is dated October 2026 β put it in your calendar, bestie, she's got a date πβ¨π
π¦ 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