Generate AppArmor security profiles by monitoring program behavior. More information: https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-genprof.8.
sudo aa-genprof {{program_path}}
sudo aa-genprof {{[-d|--dir]}} {{/path/to/profiles}} {{program_path}}
sudo aa-genprof {{[-f|--file]}} {{/path/to/logfile}} {{program_path}}
aa-genprof {{[-h|--help]}}