core-admin/qrexec
Rafal Wojtczuk 11c1cb0aa2 qrexec: temporarily disable auto executing domains upon rpc request
There are two problems with qvm-run -a:
1) even with -q flag, it spits to stdout (actually, "xl create" does it), and
this garbage is received by rpc client
2) even with -q flag, it steals input (actually, "qrexec ... wait for session")

These two can be manually fixed (by passing /dev/null appropriately); hovewer,
this is prone to disaster if qvm-run is enhanced/broken later.

We could do
if is_domain_running() ; then
	run qrexec client
else
	qvm-run -a domain true </dev/null >/dev/null
	run qrexec client
fi
which looks safer; but is_domain_running() is a bit expensive even in "running"
case - we need to xl_context.list_domains anyway.

Gotta decide on one of these.
2011-07-07 09:13:51 +02:00
..
.gitignore gitignores 2011-03-23 19:57:48 -04:00
buffer.c qrexec: added comments, made identifiers more verbose 2011-05-04 12:52:54 +02:00
buffer.h qrexec* tools, initial version 2011-03-04 16:32:58 +01:00
exec.c qrexec* tools, initial version 2011-03-04 16:32:58 +01:00
glue.h qrexec: move daemon-specific code out of unix_server.c 2011-07-04 17:06:29 +02:00
Makefile qrexec: add qrexec_client_vm.c 2011-07-05 11:03:31 +02:00
qrexec_agent.c qrexec: in agent, use nonzero "fake" pid for existing process 2011-07-05 13:04:34 +02:00
qrexec_client_vm.c qrexec: in qrexec_client_vm, need to preserve absolute exe name before execv 2011-07-06 16:51:56 +02:00
qrexec_client.c qrexec: fixed qrexec_client getopt handling 2011-07-05 11:04:44 +02:00
qrexec_daemon.c qrexec: enforce strict character set in TRIGGER_EXEC message 2011-07-06 17:07:40 +02:00
qrexec_policy qrexec: temporarily disable auto executing domains upon rpc request 2011-07-07 09:13:51 +02:00
qrexec.h qrexec: CONNECT_EXISTING command handling in daemon and client 2011-07-04 20:55:25 +02:00
qubes_rpc_multiplexer qrexec: last two missing pieces of the new rpc infrastructure 2011-07-05 18:35:03 +02:00
txrx-vchan.c Adopt vchan to xen-libs-4.1.0 API. 2011-04-19 01:21:48 +02:00
unix_server.c qrexec: move daemon-specific code out of unix_server.c 2011-07-04 17:06:29 +02:00
write_stdin.c qrexec: added two I/O error checks, even though it is redundant in these cases 2011-05-04 12:56:52 +02:00