2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

drop now unused get_include_path()

... and a comment mentioning it
This commit is contained in:
Christian Boltz
2020-06-01 23:14:25 +02:00
parent 0aa58536f0
commit 2a742b3e6b
2 changed files with 0 additions and 6 deletions

View File

@@ -1392,11 +1392,6 @@ def ask_conflict_mode(profile, hat, old_profile, merge_profile):
done = True
def get_include_path(incname):
if incname.startswith('/'):
return incname
return profile_dir + '/' + incname
def match_includes(profile, rule_type, rule_obj):
''' propose abstractions that allow the given rule_obj

View File

@@ -128,7 +128,6 @@ class IncludeRule(BaseRule):
def get_full_paths(self, profile_dir):
''' get list of full paths of an include (can contain multiple paths if self.path is a directory) '''
# currently this section is based on aa.py get_include_path() (with variable names changed)
# TODO: improve/fix logic to honor magic vs. quoted include paths
if self.path.startswith('/'):
full_path = self.path