[apparmor] How to test if apparmor is built in kernel

Jeroen Ooms jeroen.ooms at stat.ucla.edu
Thu Mar 10 15:10:30 UTC 2016


What would be a good method for a configure script to test if the
current kernel has apparmor support (even if apparmor is not actually
installed or has been disabled at boot)?

I would like the configure script to suggest on e.g. Debian that
apparmor is supported (even though it might require modifying
/etc/default/grub and/or installing libapparmor-dev) but on Fedora /
CentOS it should silently build without apparmor.



More information about the AppArmor mailing list