2025-07-24 22:27:13 -06:00
|
|
|
# aa-genprof
|
|
|
|
|
|
|
|
|
|
> Generate AppArmor security profiles by monitoring program behavior.
|
|
|
|
|
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-genprof.8>.
|
|
|
|
|
|
|
|
|
|
- Start generating a profile for a program:
|
|
|
|
|
|
|
|
|
|
`sudo aa-genprof {{program_path}}`
|
|
|
|
|
|
|
|
|
|
- Specify a custom directory for profiles:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo aa-genprof {{[-d|--dir]}} /{{path/to/profiles}} {{program_path}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Specify a custom logfile for profiling:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo aa-genprof {{[-f|--file]}} /{{path/to/logfile}} {{program_path}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`aa-genprof {{[-h|--help]}}`
|