forked from QubesOS/qubes-core-qrexec
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add connection timeout on the VM side too
If remote VM fails to establish (already allowed by the policy) connection, the local side (qrexec-client-vm) will wait indefinitely. Similarly, if the calling side (qrexec-client-vm) do not finish connection setup (gets killed early? or maybe the whole VM goes down?), there will be a process waiting on the remote side (either qrexec-fork-server child, or qrexec-agent child). Solve this issue by adding connection timeout similar to what qrexec-client (in dom0) does. Since both libvchan_server_init() and libvchan_client_init() are involved, add new function that can handle both. This code is shared between qrexec-client-vm and qrexec-fork-server, so both are covered. Fixes QubesOS/qubes-issues#8476
- Loading branch information
Showing
1 changed file
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters