[apparmor] [PATCH] utils: Don't check for existence of abstraction files in aa-easyprof
Tyler Hicks
tyhicks at canonical.com
Mon Nov 30 04:28:54 UTC 2015
aa-easyprof is used to generate profiles and the lack of an abstraction
file during profile generation should not be an error condition.
Leave the handling of the abstraction file for the parser. It will fail
if the file does not exist when the profile is being compiled.
https://launchpad.net/bugs/1521031
Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
utils/apparmor/easyprof.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/utils/apparmor/easyprof.py b/utils/apparmor/easyprof.py
index d7ca3e1..560a552 100644
--- a/utils/apparmor/easyprof.py
+++ b/utils/apparmor/easyprof.py
@@ -507,8 +507,6 @@ class AppArmorEasyProfile:
def gen_abstraction_rule(self, abstraction):
'''Generate an abstraction rule'''
p = os.path.join(self.aa_topdir, "abstractions", abstraction)
- if not os.path.exists(p):
- raise AppArmorException("%s does not exist" % p)
return "#include <abstractions/%s>" % abstraction
def gen_variable_declaration(self, dec):
--
2.5.0
More information about the AppArmor
mailing list