qubesvm: fix stdio handling in vm.run_service_for_stdio

Do set stdin/stdout/stderr descriptors as PIPE. Otherwise would not be
redirected.
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-27 00:45:52 +02:00
parent 838553baf8
commit 2a25db7eb7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1080,6 +1080,10 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
not filtered for problems originating between the keyboard and the
chair.
''' # pylint: disable=redefined-builtin
kwargs.setdefault('stdin', subprocess.PIPE)
kwargs.setdefault('stdout', subprocess.PIPE)
kwargs.setdefault('stderr', subprocess.PIPE)
p = yield from self.run_service(*args, **kwargs)
# this one is actually a tuple, but there is no need to unpack it