Merge "Allow policy tests to support space in file names"

This commit is contained in:
Thiébaud Weksteen 2022-02-08 21:48:17 +00:00 committed by Gerrit Code Review
commit c3ae0ceaee

View file

@ -396,7 +396,8 @@ class Policy:
self.__libsepolwrap = lib
def __GenfsDictAdd(self, Dict, buf):
fs, path, context = buf.split(" ")
fs, buf = buf.split(' ', 1)
path, context = buf.rsplit(' ', 1)
Type = context.split(":")[2]
if not fs in Dict:
Dict[fs] = {Type}