Home
last modified time | relevance | path

Searched refs:pathregex (Results 1 – 1 of 1) sorted by relevance

/system/sepolicy/tests/
Dpolicy.py33 def MatchPathPrefix(pathregex, prefix): argument
34 for i in range(len(pathregex), 0, -1):
36 pattern = re.compile('^' + pathregex[0:i] + "$")
43 def MatchPathPrefixes(pathregex, Prefixes): argument
45 if MatchPathPrefix(pathregex, Prefix):
267 def __ExactMatchPathPrefix(self, pathregex, prefix): argument
268 pattern = re.compile('^' + pathregex + "$")