LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aa-audit

Set AppArmor profiles to audit mode

TLDR

Put a profile into audit mode, so permitted actions are logged too
$ sudo aa-audit [profile_name]
copy
Do it for several profiles at once
$ sudo aa-audit [profile1] [profile2]
copy
Take a profile back out of audit mode
$ sudo aa-audit --remove [profile_name]
copy
Read profiles from a directory other than the system one
$ sudo aa-audit --dir [path/to/profiles] [profile_name]
copy
Apply it again even though the profile already has it
$ sudo aa-audit --force [profile_name]
copy
Change the file but leave the running policy alone
$ sudo aa-audit --no-reload [profile_name]
copy

SYNOPSIS

aa-audit executable [executable ...] [-d /path/to/profiles] [--no-reload]

DESCRIPTION

aa-audit configures AppArmor security profiles to operate in audit mode. In this mode, security policy is enforced and all access attempts (both successes and failures) are logged to the system log. This allows administrators to monitor application behavior while still enforcing security policies.

PARAMETERS

-d, --dir /path/to/profiles

Specifies the directory containing AppArmor profiles; defaults to /etc/apparmor.d
--no-reload
Prevents automatic profile reloading after modifications
-r, --remove
Disable audit mode for the specified profile (reverses the effect of aa-audit).
-h, --help
Display help information

INSTALL

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

CAVEATS

Audit mode generates significant log output as it records all access attempts. This can impact system performance and fill up log files quickly on busy systems.

HISTORY

Part of the AppArmor application security framework, developed as an alternative to SELinux for Linux systems. AppArmor was originally developed by Immunix and later acquired by Novell in 2005.

SEE ALSO

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