vm/qubesvm: fix daemon startup function

'command' argument is a tuple
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-07 16:49:35 +02:00
parent 6383d87be9
commit 68c8d219c9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1153,7 +1153,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
# some files (like clipboard) may be created as root and cause
# permission problems
qubes_group = grp.getgrnam('qubes')
command = ['runuser', '-u', qubes_group.gr_mem[0], '--'] + command
command = ['runuser', '-u', qubes_group.gr_mem[0], '--'] + \
list(command)
p = yield from asyncio.create_subprocess_exec(*command, **kwargs)
stdout, stderr = yield from p.communicate(input=input)
if p.returncode: