1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 04:35:24 +02:00
tldr/pages/linux/aa-cleanprof.md
Prithviraj03 529b37fbb1
aa-*, apparmor_parser: add page (#16844)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-14 20:24:48 +03:00

683 B

aa-cleanprof

Clean AppArmor security profiles by removing unused rules. More information: https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-cleanprof.8.

  • Clean a profile to remove unused rules:

sudo aa-cleanprof {{profile_name}}

  • Clean multiple profiles at once:

sudo aa-cleanprof {{profile1 profile2 ...}}

  • Specify the directory containing profiles:

sudo aa-cleanprof {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}

  • Run silently without prompts:

sudo aa-cleanprof {{[-s|--silent]}} {{profile_name}}

  • Prevent profile reload after cleaning:

sudo aa-cleanprof --no-reload {{profile_name}}

  • Display help:

aa-cleanprof {{[-h|--help]}}