From fb62cb15b2d16e886977080533082a045acde951 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sat, 5 Jan 2008 08:29:39 +0000 Subject: [PATCH] update apparmor_status to work when apparmor is a kernel builtin --- utils/apparmor_status | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/apparmor_status b/utils/apparmor_status index 0070e3948..034355200 100644 --- a/utils/apparmor_status +++ b/utils/apparmor_status @@ -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() { return 1 if m/^(subdomain|apparmor)\s+/;