AA-CLEANPROF(8)
β¨ NAME β¨
aa-cleanprof β bestie, this one gives an existing AppArmor security profile a full glow-up. β¨ It cleans it. That's the whole job, and it's iconic at it.
πΈ SYNOPSIS πΈ
aa-cleanprof <executable> [<executable> ...] [-d /path/to/profiles]
[--no-reload] [-s]
π OPTIONS π
-d --dir/path/to/profiles β tells it where to go look for the whole AppArmor security profile set. If you don't say anything, it lowkey just assumes/etc/apparmor.d(the default, the moment π).--no-reloadβ don't reload the profile after you've modified it. Like, we changed it, we're just not refreshing it yet, ok?? π«Ά-s --silentβ silently overwrites the profile without user prompt. No asking, no "r u sure bestie", it just does it. π
π DESCRIPTION π
So aa-cleanprof runs a cleanup on one or more profiles, and honestly? It's giving spring cleaning. π§Ήβ¨
Here's what it does to your profile:
- it removes any existing superfluous rules β meaning rules that are already covered under an include or another rule (redundant, extra, not needed, we don't know her π)
- it reorders the rules so similar rules get grouped together (organization, main character energy, we love to see it π)
- it removes all the comments from the file (yes, all of them, the comments are NOT surviving this, no cap π)
π¦ BUGS π¦
Found a bug? Not the vibe. π€ Please report it over at:
https://gitlab.com/apparmor/apparmor/-/issues
π SEE ALSO π
apparmor(7), apparmor.d(5), aa-enforce(1), aa-complain(1), aa-disable(1), aa_change_hat(2), and the wiki at <https://wiki.apparmor.net>.
okay that's the whole page bestie, you're literally an aa-cleanprof expert now fr fr π This one comes from AppArmor 6.0.0~alpha1 and it's dated 2026-10-05. π Stay clean, stay slay. π β
π¦ where this page comes from
- ubuntu stonking: apparmor-utils 6.0.0~alpha1-0ubuntu4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms