AA-REMOVE-UNKNOWN(8)
โจ AA-REMOVE-UNKNOWN โจ
okay bestie, this is the aa-remove-unknown page from the AppArmor corner of the manual, section 8 (that's the sysadmin-y one, iykyk) ๐
๐ธ NAME ๐ธ
aa-remove-unknown โ bestie's little cleanup crew that removes unknown AppArmor profiles ๐งนโจ
๐ฆ SYNOPSIS ๐ฆ
aa-remove-unknown [option]
๐ DESCRIPTION ๐
so here's the vibe: aa-remove-unknown takes inventory of literally every profile chillin' in /etc/apparmor.d/, then compares that list against the profiles that are currently loaded into the kernel ๐
then it removes all of the loaded profiles that were not found in /etc/apparmor.d/. not a single crumb left behind, periodt.
and the way it's so transparent about it?? it also reports the name of each profile that it removes on standard out. so you always know exactly what got yeeted. iconic behavior honestly ๐ซถ
๐ OPTIONS ๐
-h,--helpโ displays a short usage statement. tiny little "here's how you use me" moment ๐ฅฐ-nโ dry run; only prints the names of profiles that would be removed. no actual deleting, just a little peek at the chaos, main character energy ๐
โญ EXAMPLES โญ
the classic "look before you leap" combo:
$ sudo ./aa-remove-unknown -n
Would remove 'test//null-/usr/bin/whoami'
Would remove 'test'
and then the real thing once you're feeling brave:
$ sudo ./aa-remove-unknown
Removing 'test//null-/usr/bin/whoami'
Removing 'test'
see how the second one says Removing instead of Would remove?? yeah. that's the dry-run-to-real-run pipeline working exactly as intended ๐
๐ BUGS ๐
None. ๐ zero. not a one. flawless, obviously. but if you find some, please report any you find to Gitlab at <https://gitlab.com/apparmor/apparmor/-/issues>. don't be shy about it bestie, they wanna know ๐
๐ SEE ALSO ๐
apparmor(7) โ go read that one too, it's the lore ๐
โ ๏ธ real talk for a sec: -n is your bestie here. it literally just prints the names of profiles that would be removed, nothing more. use it first. always. then run the real thing. that's the move ๐
mwah ๐ this little slice of AppArmor joy comes to you from version AppArmor 6.0.0~alpha1, dated 2026-10-05. thanks for reading, ily, go clean up your kernel ๐ฅโจ
๐ฆ where this page comes from
- ubuntu stonking: apparmor 6.0.0~alpha1-0ubuntu4 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms