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.
displays a short usage statement.
-n dry run; only prints the names of profiles that would be removed
$ sudo ./aa-remove-unknown -n
Would remove 'test//null-/usr/bin/whoami'
Would remove 'test'
$ sudo ./aa-remove-unknown
None. Please report any you find to Launchpad at
AppArmor 2.10.95 2018-02-02 AA-REMOVE-UNKNOWN(8)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2018
All Rights Reserved.