2025-06-14 12:24:48 -05:00
|
|
|
# aa-logprof
|
|
|
|
|
|
|
|
> Interactively update AppArmor security profiles based on logged violations.
|
|
|
|
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-logprof.8>.
|
|
|
|
|
|
|
|
- Interactively review and update profiles based on system logs:
|
|
|
|
|
|
|
|
`sudo aa-logprof`
|
|
|
|
|
|
|
|
- Use a specific directory for AppArmor profiles:
|
|
|
|
|
2025-08-16 12:54:02 +03:00
|
|
|
`sudo aa-logprof {{[-d|--dir]}} /{{path/to/profiles}}`
|
2025-06-14 12:24:48 -05:00
|
|
|
|
|
|
|
- Use a specific log file instead of the default:
|
|
|
|
|
2025-08-16 12:54:02 +03:00
|
|
|
`sudo aa-logprof {{[-f|--file]}} /{{path/to/logfile}}`
|
2025-06-14 12:24:48 -05:00
|
|
|
|
|
|
|
- Ignore all log entries before the specified mark:
|
|
|
|
|
|
|
|
`sudo aa-logprof {{[-m|--logmark]}} "{{log_marker_text}}"`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`aa-logprof {{[-h|--help]}}`
|