AA-AUDIT(8)

πŸ’– AA-AUDIT β€” bestie's guide to putting profiles in their audit era πŸ’–

okay so real quick, this is aa-audit from section 8 of the manuals β€” that's the sysadmin-ish corner of the AppArmor universe, and yes we're about to make it cute. πŸŽ€ stannn


✨ NAME ✨

aa-audit β€” sets an AppArmor security profile to audit mode. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

aa-audit <executable> [<executable> ...] [-d /path/to/profiles]
[--no-reload] [-r]

bestie you just hand her one or more executables and she handles the rest, iykyk ✨


🌸 OPTIONS 🌸

  • -d, --dir /path/to/profiles β€” tells aa-audit where to go looking for the AppArmor security profile set. if you don't say anything she just assumes /etc/apparmor.d like the icon she is πŸ‘‘
  • --no-reload β€” do NOT reload the profile after modifying it. that's it. she'll touch it and leave it exactly as-is, no refresh, no glow-up round two πŸ™ˆ
  • -r, --remove β€” takes the audit mode back off the profile. we love a reversible decision πŸ’–

🧚 DESCRIPTION 🧚

so here's the tea πŸ“: aa-audit is used to set one or more profiles to audit mode. and what does audit mode actually mean? it means security policy is enforced β€” she's not playing around, the rules are the rules β€” but on top of that, all access, both the successes and the failures, gets logged to the system log. every single one. she's watching, she's taking notes, it's giving surveillance but make it ✨structured✨

ngl that's lowkey the move when you wanna see what a profile would be doing in the wild without loosening anything.

and if at some point you're like "okay bestie, I'm done with the audit era," the --remove option can be used to remove the audit mode for the profile. easy come, easy go, periodt πŸ’…


πŸ’€ BUGS πŸ’€

if you find any bugs (and 😭 I hope you don't), please report them at <https://gitlab.com/apparmor/apparmor/-/issues>. the maintainers are literally obsessed with hearing from you, fr fr 🫢


🌈 SEE ALSO 🌈

go read the whole friend group, they all ate πŸ”₯


reminder bestie: audit mode enforces AND logs everything, successes and failures alike. if you don't want the profile reloaded after the change, that's what --no-reload is for. don't skip it and then act surprised, I'm begging 😭

and that's the whole page, no notes, 10/10 β€” brought to you by AppArmor 6.0.0~alpha1, dated 2026-10-05, closing out the AA-AUDIT(8) manual like the main character she is πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from