update apparmor_status to work when apparmor is a kernel builtin

This commit is contained in:
John Johansen 2008-01-05 08:29:39 +00:00
parent 482b8741b7
commit fb62cb15b2

View file

@ -50,6 +50,7 @@ $verbose = 1 if ($count_complain + $check_enabled + $count_enforced + $count_pro
usage() if $help or ($count_complain + $check_enabled + $count_enforced + $count_profiled + $verbose > 1);
sub is_subdomain_loaded() {
return 1 if (-d "/sys/module/apparmor");
if(open(MODULES, "/proc/modules")) {
while(<MODULES>) {
return 1 if m/^(subdomain|apparmor)\s+/;