LinuxCommandLibrary

aa-logprof

Update AppArmor profiles from log events interactively

TLDR

Interactively review and update profiles based on system logs

$ sudo aa-logprof
copy
Use a specific directory for AppArmor profiles
$ sudo aa-logprof -d /path/to/profiles
copy
Use a specific log file instead of the default
$ sudo aa-logprof -f /path/to/logfile
copy
Ignore all log entries before a mark
$ sudo aa-logprof -m "log_marker_text"
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community