Home
last modified time | relevance | path

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

/system/sepolicy/tests/
Dpolicy.py19 def MatchPathPrefix(pathregex, prefix): argument
20 for i in range(len(pathregex), 0, -1):
22 pattern = re.compile('^' + pathregex[0:i] + "$")
29 def MatchPathPrefixes(pathregex, Prefixes): argument
31 if MatchPathPrefix(pathregex, Prefix):
234 def __ExactMatchPathPrefix(self, pathregex, prefix): argument
235 pattern = re.compile('^' + pathregex + "$")