aa-cleanprof - clean an existing AppArmor security profile.
[<executable> ...] [-d
/path/to/profiles ] [--no-reload]
-d --dir /path/to/profiles
Specifies where to look for the AppArmor security profile set.
Defaults to /etc/apparmor.d.
Do not reload the profile after modifying it.
Silently overwrites the profile without user prompt.
aa-cleanprof is used to perform a cleanup on one or more profiles. The
tool removes any existing superfluous rules (rules that are covered under an
include or another rule), reorders the rules to group similar rules together
and removes all comments from the file.