2
0
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:
Dominic Reynolds
2007-09-28 15:39:42 +00:00
parent de9a6dea63
commit de278ffef8

View File

@@ -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)) {