diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 3b8aeab41..e54d064d2 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -4455,6 +4455,8 @@ def load_include(incname): #If the include is a directory means include all subfiles elif os.path.isdir(profile_dir + '/' + incfile): load_includeslist += list(map(lambda x: incfile + '/' + x, os.listdir(profile_dir + '/' + incfile))) + else: + raise AppArmorException("Include file %s not found" % (profile_dir + '/' + incfile) ) return 0