Add qubes.ConnectTCP RPC for allowing dom0 sockets binding

This commit is contained in:
Frédéric Pierret (fepitre) 2019-08-29 11:40:06 +02:00
parent e32ce14ab5
commit 7d1b6e24a9
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2
3 changed files with 12 additions and 0 deletions

View File

@ -193,6 +193,7 @@ endif
cp qubes-rpc/qubes.GetRandomizedTime $(DESTDIR)/etc/qubes-rpc/
cp qubes-rpc/qubes.NotifyTools $(DESTDIR)/etc/qubes-rpc/
cp qubes-rpc/qubes.NotifyUpdates $(DESTDIR)/etc/qubes-rpc/
cp qubes-rpc/qubes.ConnectTCP $(DESTDIR)/etc/qubes-rpc/
install qubes-rpc/qubesd-query-fast $(DESTDIR)/usr/libexec/qubes/
install -m 0755 qvm-tools/qubes-bug-report $(DESTDIR)/usr/bin/qubes-bug-report
install -m 0755 qvm-tools/qubes-hcl-report $(DESTDIR)/usr/bin/qubes-hcl-report

View File

@ -0,0 +1,10 @@
#!/bin/bash
PORT="$1"
[[ -z "$PORT" ]] && { echo "Please provide PORT"; exit 1; };
if [[ "$PORT" -ge 1 ]] && [[ "$PORT" -le 65535 ]]; then
socat STDIO TCP:localhost:"$PORT"
else
echo "Invalid port provided"
exit 1
fi

View File

@ -406,6 +406,7 @@ fi
/etc/qubes-rpc/qubes.GetRandomizedTime
/etc/qubes-rpc/qubes.NotifyTools
/etc/qubes-rpc/qubes.NotifyUpdates
/etc/qubes-rpc/qubes.ConnectTCP
%attr(2770,root,qubes) %dir /var/log/qubes
%attr(0770,root,qubes) %dir /var/run/qubes