Merge "Allow policy tests to support space in file names"
This commit is contained in:
commit
c3ae0ceaee
1 changed files with 2 additions and 1 deletions
|
@ -396,7 +396,8 @@ class Policy:
|
||||||
self.__libsepolwrap = lib
|
self.__libsepolwrap = lib
|
||||||
|
|
||||||
def __GenfsDictAdd(self, Dict, buf):
|
def __GenfsDictAdd(self, Dict, buf):
|
||||||
fs, path, context = buf.split(" ")
|
fs, buf = buf.split(' ', 1)
|
||||||
|
path, context = buf.rsplit(' ', 1)
|
||||||
Type = context.split(":")[2]
|
Type = context.split(":")[2]
|
||||||
if not fs in Dict:
|
if not fs in Dict:
|
||||||
Dict[fs] = {Type}
|
Dict[fs] = {Type}
|
||||||
|
|
Loading…
Reference in a new issue