audit_iface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ’–:


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