app: fix policy deny reporting when running in VM

qrexec-client-vm non-zero exit code means policy have denied the call.
Treat this exactly the same as empty response (in dom0 case).
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-05 14:14:11 +02:00
parent d8f018eb95
commit a2d9303ea9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -551,9 +551,8 @@ class QubesRemote(QubesBase):
payload_stream.close() payload_stream.close()
(stdout, stderr) = p.communicate(payload) (stdout, stderr) = p.communicate(payload)
if p.returncode != 0: if p.returncode != 0:
# TODO: use dedicated exception raise qubesadmin.exc.QubesDaemonNoResponseError(
raise qubesadmin.exc.QubesException('Service call error: %s', 'Service call error: %s', stderr.decode())
stderr.decode())
return self._parse_qubesd_response(stdout) return self._parse_qubesd_response(stdout)