Skip to content

Commit

Permalink
Use 'qrexec-client-vm --use-stdin-socket' to properly handle EOF
Browse files Browse the repository at this point in the history
When qrexec-client-vm is called from a systemd unit connected to a
socket, it the same socket on both stdin and stdout. Tell
qrexec-client-vm about it, so it can use shutdown() instead of close()
to properly deliver EOF. It will also make the qrexec-client-vm to use
just stdin FD.

QubesOS/qubes-issues#9169
  • Loading branch information
marmarek committed May 4, 2024
1 parent 0d2d42e commit ce5da9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Description=Forward connection to updates proxy over Qubes RPC

[Service]
ExecStart=/usr/bin/qrexec-client-vm '' qubes.UpdatesProxy
ExecStart=/usr/bin/qrexec-client-vm --use-stdin-socket '' qubes.UpdatesProxy
StandardInput=socket
StandardOutput=inherit

0 comments on commit ce5da9e

Please sign in to comment.