libvirt/src/remote
Michal Privoznik d133d73f54 remote: Pass 'mode' and 'socket' URI parameters to virt-ssh-helper
When handling virConnectOpen(), we parse given URI, specifically
all those parameters we know, like ?mode, ?socket, ?name, etc.
ignoring those we don't recognize yet. Then, we reconstruct the
URI back, but ignoring all parameters we've parsed. In other
words:

  qemu:///system?mode=legacy&foo=bar

becomes:

  qemu:///system?foo=bar

The reconstructed URI is then passed to the corresponding driver
(QEMU in our example) with intent of it parsing parameters
further (or just ignoring them). But for some transport modes,
where virt-ssh-helper is ran on the remote host (libssh, libssh2,
ssh) we need to pass ?mode and ?socket parameters, so that it can
do the right thing, e.g. for 'mode=legacy' start the monolithic
daemon, or for 'socket=' connect to the given socket.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/433
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2023-02-08 16:50:45 +01:00
..
libvirtd-admin.socket.in util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
libvirtd-ro.socket.in util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
libvirtd-tcp.socket.in util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
libvirtd-tls.socket.in util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
libvirtd.aug.in daemon: add tcp_min_ssf option 2021-11-04 17:02:56 +01:00
libvirtd.conf.in remote: conf: Mention that 'virtproxyd' doesn't require the '--listen' flag 2022-07-13 09:28:04 +02:00
libvirtd.confd configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
libvirtd.init.in remote: Drop KRB5_KTNAME override 2020-04-03 11:51:00 +02:00
libvirtd.libxl.logrotate.in
libvirtd.logrotate.in
libvirtd.lxc.logrotate.in
libvirtd.policy
libvirtd.qemu.logrotate.in
libvirtd.rules
libvirtd.sasl docs: stop mentioning insecure / broken SASL mechanisms 2021-03-17 09:31:57 +00:00
libvirtd.service.in services: Weaken systemd dependency on virtlockd 2023-01-18 11:06:13 -07:00
libvirtd.socket.in util: drop support for obsolete systemd in RHEL-7 2022-02-17 12:35:42 +00:00
libvirtd.sysctl
lxc_protocol.x
meson.build meson: Use dicts to initialize cfg_data objects 2022-04-01 15:33:19 +02:00
qemu_protocol.x lib: Introduce 'virDomainQemuMonitorCommandWithFiles' 2022-03-01 13:29:49 +01:00
remote_daemon_config.c remote: remove unnecessary return value and if branch 2022-09-07 11:53:33 +02:00
remote_daemon_config.h remote: remove unnecessary return value and if branch 2022-09-07 11:53:33 +02:00
remote_daemon_dispatch.c remote: Drop useless cleanup in remoteDispatchNodeGet{CPU,Memory}Stats 2023-01-26 16:11:09 +01:00
remote_daemon_dispatch.h remote: Remove unused includes 2022-06-16 06:43:57 +02:00
remote_daemon_stream.c remote: fix misspelling in the documation of 'daemonCreateClientStream' 2023-01-06 10:20:27 +01:00
remote_daemon_stream.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
remote_daemon.c lib: Use the same style in the 'struct option' 2022-11-22 10:15:11 +01:00
remote_daemon.h remote: Remove unused includes 2022-06-16 06:43:57 +02:00
remote_driver.c remote: Pass 'mode' and 'socket' URI parameters to virt-ssh-helper 2023-02-08 16:50:45 +01:00
remote_driver.h remote: warn on low SSF 2021-11-04 17:02:56 +01:00
remote_protocol.x lib: Introduce virDomainFDAssociate API 2023-01-09 14:59:42 +01:00
remote_sockets.c remote: fix null string specifier argument in remoteProbeSessionDriverFromBinary 2022-05-26 10:14:46 +02:00
remote_sockets.h remote: extract logic for probing for modular daemons 2021-06-18 16:19:42 +01:00
remote_ssh_helper.c virt-ssh-helper: Accept ?socket= in connection URI 2023-02-08 16:50:45 +01:00
test_libvirtd.aug.in daemon: add tcp_min_ssf option 2021-11-04 17:02:56 +01:00
virt-guest-shutdown.target Revert "remote: Add libvirtd dependency to virt-guest-shutdown.target" 2021-01-29 10:39:33 -07:00
virtproxyd.confd configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtproxyd.init.in remote: Drop KRB5_KTNAME override 2020-04-03 11:51:00 +02:00
virtproxyd.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00