Scroll to navigation

AA-SHOW-USAGE(8) AppArmor AA-SHOW-USAGE(8)

NAME

aa-show-usage - Check which profiles are used

SYNOPSIS

aa-show-usage [option]

DESCRIPTION

aa-show-usage will display data on the usage of the profiles of the system

OPTIONS

aa-show-usage accepts the following arguments:

Type of profiles to show
Output in JSON
Path to profiles
Show the path of a file matching the profile. Only the first matching path of an executable is shown (not the whole list).

FILTERING OPTIONS

aa-show-usage accepts the following filters to reduce the output of information to only those entries that will match the filter. Filters use Python's regular expression syntax.

Filter by flags
Filter by profile name
Filter by profile attachment (i.e. by path of the executable to which this profile applies)
Filter by profile path

EXAMPLES

Show both the list of used and unused profiles in your system.

  $ aa-show-usage

Show the list of unconfined profiles currently used by your system.

  $ aa-show-usage --show-type=used --filter.flags=unconfined

BUGS

aa-show-usage needs to be able to read profiles to tell whether they are used in practice.

aa-show-usage will only report directly used profiles. Profiles used via profile transitions, systemd's AppArmorProfile=, or API call such as aa-exec are not shown as used.

If you find any additional bugs, please report them at <https://gitlab.com/apparmor/apparmor/-/issues>.

SEE ALSO

apparmor(7)

2026-06-14 AppArmor 5.0.1