mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Don't try to read inactive profile directory if it doesn't exist. Fix
based on feedback from mathiaz@ubuntu.com and from bug report: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/141128.
This commit is contained in:
@@ -4084,6 +4084,7 @@ sub readprofiles () {
|
||||
}
|
||||
|
||||
sub readinactiveprofiles () {
|
||||
return if ( ! -e $extraprofiledir );
|
||||
opendir(ESDDIR, $extraprofiledir) or
|
||||
fatal_error "Can't read AppArmor profiles in $extraprofiledir.";
|
||||
for my $file (grep { -f "$extraprofiledir/$_" } readdir(ESDDIR)) {
|
||||
|
Reference in New Issue
Block a user