aa-remove-unknown(8)

aa-remove-unknown8

Remove unknown apparmor profiles

Usage

aa-remove-unknown [option]

Overview

aa-remove-unknown will inventory all profiles in /etc/apparmor.d/, compare that list to the profiles currently loaded into the kernel, and then remove all of the loaded profiles that were not found in /etc/apparmor.d/. It will also report the name of each profile that it removes on standard out.

Options

-h, --help

displays a short usage statement.

-n

dry run; only prints the names of profiles that would be removed

Examples

  $ sudo ./aa-remove-unknown -n
  Would remove 'test//null-/usr/bin/whoami'
  Would remove 'test'
  $ sudo ./aa-remove-unknown
  Removing 'test//null-/usr/bin/whoami'
  Removing 'test'

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Bugs

None. Please report any you find to Gitlab at <https://gitlab.com/apparmor/apparmor/-/issues>.

From apparmor 4.1.8-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.