mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 00:05:14 +00:00
drop now unused get_include_path()
... and a comment mentioning it
This commit is contained in:
@@ -1392,11 +1392,6 @@ def ask_conflict_mode(profile, hat, old_profile, merge_profile):
|
|||||||
|
|
||||||
done = True
|
done = True
|
||||||
|
|
||||||
def get_include_path(incname):
|
|
||||||
if incname.startswith('/'):
|
|
||||||
return incname
|
|
||||||
return profile_dir + '/' + incname
|
|
||||||
|
|
||||||
def match_includes(profile, rule_type, rule_obj):
|
def match_includes(profile, rule_type, rule_obj):
|
||||||
''' propose abstractions that allow the given rule_obj
|
''' propose abstractions that allow the given rule_obj
|
||||||
|
|
||||||
|
@@ -128,7 +128,6 @@ class IncludeRule(BaseRule):
|
|||||||
def get_full_paths(self, profile_dir):
|
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) '''
|
''' 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
|
# TODO: improve/fix logic to honor magic vs. quoted include paths
|
||||||
if self.path.startswith('/'):
|
if self.path.startswith('/'):
|
||||||
full_path = self.path
|
full_path = self.path
|
||||||
|
Reference in New Issue
Block a user