LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apk add apparmor-utils
copy
sudo zypper install apparmor-utils
copy
nix profile install nixpkgs#apparmor-utils
copy

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid