aa-logprof
Update AppArmor profiles from log events interactively
TLDR
Interactively review and update profiles based on system logs
SYNOPSIS
aa-logprof [-d /path/to/profiles] [-f /path/to/logfile] [-m mark]
DESCRIPTION
aa-logprof is an interactive utility that scans AppArmor security logs and prompts users to review and update existing security profiles. When launched, it identifies new AppArmor events not covered by current profiles and suggests modifications.
Upon exit, updated profiles are saved and reloaded if AppArmor is active. Interactive responses include: (A)llow, (D)eny, (I)gnore, (N)ew, (G)lob last piece, (Q)uit.
PARAMETERS
-d, --dir /path/to/profiles
Specifies where to look for the AppArmor security profile set; defaults to /etc/apparmor.d-f, --file /path/to/logfile
Specifies the location of the logfile; defaults are read from /etc/apparmor/logprof.conf-m, --logmark "mark"
Filters out log entries preceding a specified mark; use quotes if mark contains spaces-h, --help
Display help information
CONFIGURATION
/etc/apparmor/logprof.conf
Controls default logfile location, repository settings, and behavior options for log-based profile updates.
CAVEATS
Log analysis depends on audit daemon configuration. Ensure auditd or klogd is properly configured to capture AppArmor events.
HISTORY
Part of the AppArmor utilities package for managing application security profiles on Linux systems.
SEE ALSO
aa-genprof(8), aa-enforce(8), aa-complain(8), auditd(8), apparmor(7)
