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:
parent
d8f018eb95
commit
a2d9303ea9
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user