Linux "aa-enabled" Command Line Options and Examples
test whether AppArmor is enabled

aa-enabled is used to determine if AppArmor is enabled..


Usage:

aa-enabled [options]




Command Line Options:

-h
Display a brief usage guide.
aa-enabled -h ...
-q
Do not output anything to stdout. This option is intended to be used by scripts that simply want to use the exit code todetermine if AppArmor is enabled.EXIT STATUSUpon exiting, aa-enabled will set its exit status to the following values:0 if AppArmor is enabled.1 if AppArmor is not enabled/loaded.2 intentionally not used as an aa-enabled exit status.3 if the AppArmor control files aren't available under /sys/kernel/security/.4 if aa-enabled doesn't have enough privileges to read the apparmor control files.64 if any unexpected error or condition is encountered.BUGSIf you find any bugs, please report them at <https://bugs.launchpad.net/apparmor/+filebug>.
aa-enabled -q ...