aa-status
Report AppArmor profile and confinement status
TLDR
SYNOPSIS
aa-status [option]
DESCRIPTION
aa-status reports the current state of AppArmor confinement on the system. By default, it displays a summary of loaded profiles grouped by enforcement mode (enforce, complain, kill, unconfined), the number of confined processes, and which profiles apply to them. Individual flags can query specific counters for use in scripts. The --json and --pretty-json flags provide machine-parseable output suitable for monitoring and automation pipelines.
PARAMETERS
--enabled
Returns error code if AppArmor is not enabled--profiled
Shows count of loaded AppArmor policies--enforced
Shows count of enforcing policies--complaining
Shows count of non-enforcing (complain mode) policies--kill
Shows count of enforcing policies that terminate tasks on violations--prompt
Shows count of enforcing policies with fallback to userspace mediation--special-unconfined
Shows count of unconfined mode policies--process-mixed
Shows count of processes confined by profile stacks with profiles in different modes--verbose
Displays comprehensive AppArmor policy data (default behavior)--json
Outputs policy data in JSON format for machine processing--pretty-json
Provides human and machine-readable JSON output--count
Shows only counts for selected information--show TYPE
Specify what to display: processes, profiles, or all (default: all)--filter.mode REGEX
Filter output by profile mode using a POSIX regular expression--filter.profiles REGEX
Filter output by confining profile name using a POSIX regular expression--filter.pid REGEX
Filter output by process PID using a POSIX regular expression--filter.exe REGEX
Filter output by executable name using a POSIX regular expression--help
Displays usage information
CAVEATS
Exit codes indicate different states: 0 = enabled with policy, 1 = not enabled, 2 = enabled but no policy, 3 = control files unavailable, 4 = insufficient privileges.
HISTORY
Part of the AppArmor utilities package for managing application security profiles on Linux systems.
SEE ALSO
aa-enforce(8), aa-complain(8), aa-disable(8), apparmor(7)
