OS Manuals

/usr/bin/aa-status

From apparmor-binutils 5.0.2-r3 (enterprise-packages), captured 2026-11-08 by running aa-status --help (exit 0). permalink

Usage: /usr/bin/aa-status [OPTIONS]
Displays various information about the currently loaded AppArmor policy.
Default if no options given
  --show=all

OPTIONS (one only):
  --enabled       returns error code if AppArmor not enabled
  --show=X        What information to show. {profiles,processes,all}
  --count         print the number of entries. Implies --quiet
  --filter.mode=filter      see filters
  --filter.profiles=filter  see filters
  --filter.pid=filter       see filters
  --filter.exe=filter       see filters
  --json          displays multiple data points in machine-readable JSON format
  --pretty-json   same data as --json, formatted for human consumption as well
  --verbose       (default) displays data points about loaded policy set
  --quiet         don't output error messages
  -h[(legacy|filters)]      this message, or info on the specified option
  --help[=(legacy|filters)] this message, or info on the specified option
Options (20)
OptionDescriptionSource
--show allwhat data sets to show information about.help + man
--enabledreturns error code if AppArmor is not enabled.help + man
--countdisplay only counts for selected information.help + man
--filter.mode filterAllows specifying a posix regular expression filter that will be applied against the displayed processes and profiles apparmor profile mode, reducing the output.help + man
--filter.profiles filterAllows specifying a posix regular expression filter that will be applied against the displayed processes and profiles confining profile, reducing the output.help + man
--filter.pid filterAllows specifying a posix regular expression filter that will be applied against the displayed processes, so that only processes pids matching the expression will be displayed.help + man
--filter.exe filterAllows specifying a posix regular expression filter that will be applied against the displayed processes, so that only processes executable name matching the expression will be displayed.help + man
--jsondisplays multiple data points about loaded AppArmor policy set in a JSON format, fit for machine consumption.help + man
--pretty-jsonsame as --json, formatted to be readable by humans as well as by machines.help + man
--verbosedisplays multiple data points about loaded AppArmor policy set (the default action if no arguments are given).help + man
--quietdon't output error messageshelp
-h (legacy|filters)this message, or info on the specified optionhelp
--profileddisplays the number of loaded AppArmor policies. (in the manual page but not in --help)man
--enforceddisplays the number of loaded enforcing AppArmor policies. (in the manual page but not in --help)man
--complainingdisplays the number of loaded non-enforcing AppArmor policies. (in the manual page but not in --help)man
--killdisplays the number of loaded enforcing AppArmor policies that will kill tasks on policy violations. (in the manual page but not in --help)man
--promptdisplays the number of loaded enforcing AppArmor policies, with fallback to userspace mediation. (in the manual page but not in --help)man
--special-unconfineddisplays the number of loaded non-enforcing AppArmor policies that are in the special unconfined mode. (in the manual page but not in --help)man
--process-mixed displays (in the manual page but not in --help)man
--helpdisplays a short usage statement. (in the manual page but not in --help)man
Exit status (6) from the manual page
0if apparmor is enabled and policy is loaded.
1if apparmor is not enabled/loaded.
2if apparmor is enabled but no policy is loaded.
3if the apparmor control files aren't available under /sys/kernel/security/.
4if the user running the script doesn't have enough privileges to read the apparmor control files.
42if an internal error occurred.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.