]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: use VIR_DRV_OPEN_REMOTE_USER in ssh transport checks
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Mar 2018 17:31:56 +0000 (17:31 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 21 Jun 2019 12:00:20 +0000 (13:00 +0100)
commit953f046d814403579c98f315358a8b59b8a9bdb3
treea5dfe5f83f5d6c83ad4cf4e1e3139f9b59265822
parent00d172545f9a3acf800dfe05bc80f68fe0a6137b
remote: use VIR_DRV_OPEN_REMOTE_USER in ssh transport checks

We currently refuse to connect to remote libvirtd over SSH if we see the
path ends in /session. Earlier on though we checked for /session and set
the VIR_DRV_OPEN_REMOTE_USER flag. There is one subtle distinction
though with the test driver. All test URIs are marked with this flag,
regardless of whether the URI indicates a local or remote connection.
Previously a local connection to the test driver would have used the
unprivileged libvirtd while a remote connection would have tried the
privileged libvirtd. With this we are consistent and use the
unprivileged for both local & remote, if the current user is non-root.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_driver.c