aa-remove-unknown

Remove orphaned AppArmor profiles from the kernel

TLDR

Perform a dry run to see which profiles would be removed
$ sudo aa-remove-unknown -n
Remove profiles that are no longer present in the configuration directory
$ sudo aa-remove-unknown

SYNOPSIS

aa-remove-unknown [-n]

DESCRIPTION

aa-remove-unknown removes AppArmor profiles that are currently loaded in the kernel but no longer have corresponding profile files in the configuration directory (/etc/apparmor.d). This helps clean up orphaned profiles after packages are removed or profiles are deleted.

PARAMETERS

-n, --dry-run

Show which profiles would be removed without actually removing them
-h, --help
Display help information

INSTALL

sudo apt install apparmor
sudo pacman -S apparmor
sudo apk add apparmor-utils
sudo zypper install apparmor-utils
nix profile install nixpkgs#apparmor-utils

CAVEATS

Running without the -n flag will immediately unload orphaned profiles from the kernel. Use dry-run first to verify which profiles will be affected.

HISTORY

Part of the AppArmor utilities package for managing application security profiles on Linux systems.

SEE ALSO

aa-disable(8), aa-enforce(8), aa-status(8), apparmor(7)

RESOURCES

Source code · Homepage · Documentation