2025-06-14 12:24:48 -05: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-08-16 12:54:02 +03:00
|
|
|
`sudo aa-genprof {{[-d|--dir]}} /{{path/to/profiles}} {{program_path}}`
|
2025-06-14 12:24:48 -05:00
|
|
|
|
|
|
|
- Specify a custom logfile for profiling:
|
|
|
|
|
2025-08-16 12:54:02 +03:00
|
|
|
`sudo aa-genprof {{[-f|--file]}} /{{path/to/logfile}} {{program_path}}`
|
2025-06-14 12:24:48 -05:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`aa-genprof {{[-h|--help]}}`
|