AA-ENABLED(1)
๐ AA-ENABLED โ ok so is AppArmor even on bestie
From the AppArmor manual, section 1 (1 = user commands, iykyk). Yes this is aa-enabled, and yes she is a whole vibe check for your kernel. ๐ฆ
โจ NAME โจ
aa-enabled โ literally just checks whether AppArmor is enabled. That's it. That's the whole job. ๐
๐ธ SYNOPSIS ๐ธ
aa-enabled [options]
๐ DESCRIPTION ๐
So here's the tea: aa-enabled is used to determine if AppArmor is enabled. She's not installing anything, she's not fixing anything, she's not judging you (ok maybe a little). She just looks. ๐โจ
๐ OPTIONS ๐
aa-enabled accepts the following arguments:
-h,--helpโ prints a brief usage guide. Slay, short and sweet. ๐-q,--quietโ do not output anything tostdout. Ngl this one is for the scripts, bestie: it's intended to be used by scripts that simply want to use the exit code to determine if AppArmor is enabled. Silent but the exit code speaks for her. ๐คซ-x,--exclusiveโ require AppArmor to have exclusive access to shared LSM interfaces to be considered enabled. Like, sharing is caring but AppArmor said no thanks, she needs the whole interface to herself or it doesn't count. ๐ฅ
โญ EXIT STATUS โญ
Upon exiting, aa-enabled will set its exit status to the following values. Yes we're going there, every single number, no skipping, this is the important part fr fr:
0โ if AppArmor is enabled. ๐ iconic. we love to see it.1โ if AppArmor is not enabled/loaded. ๐ it's giving off.2โ intentionally not used as anaa-enabledexit status. Like, that number is reserved somewhere else, mind your business. ๐3โ if the AppArmor control files aren't available under/sys/kernel/security/. ๐ญ where did they GO.4โ ifaa-enableddoesn't have enough privileges to read the apparmor control files. bestie needs permission. ๐ฅบ10โ AppArmor is enabled but does not have access to shared LSM interfaces. so close yet so far. ๐ซ64โ if any unexpected error or condition is encountered. chaos. unexpected condition?? in MY kernel?? ๐
lowkey memorize0and1, highkey check the rest in your scripts. your exit codes are your main character moment. ๐
๐ BUGS ๐
If you find any bugs, please report them at <https://gitlab.com/apparmor/apparmor/-/issues>. Please, she wants to know. Do not suffer in silence, drop the link, file the issue. ๐ซถ
๐ SEE ALSO ๐
apparmor(7)apparmor.d(5)aa_is_enabled(2)- <https://wiki.apparmor.net>
That's the whole page, bestie, no notes. This was AppArmor 6.0.0~alpha1, dated 2026-10-05, from the aa-enabled(1) page in the AppArmor manual. Go run aa-enabled -q in a script and let the exit code do the talking. periodt. ๐โจ
๐ฆ 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