mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
update apparmor_status to work when apparmor is a kernel builtin
This commit is contained in:
parent
482b8741b7
commit
fb62cb15b2
1 changed files with 1 additions and 0 deletions
|
@ -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+/;
|
||||
|
|
Loading…
Add table
Reference in a new issue