]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: refactor how unprivileged user session connection is identified
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Mar 2018 15:13:48 +0000 (15:13 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 21 Jun 2019 11:59:49 +0000 (12:59 +0100)
commit00d172545f9a3acf800dfe05bc80f68fe0a6137b
treea6c5e2d3cc4b0a37b518763ee45a711b0f5ec6ff
parent5a148ce846a9d68af28fec1ebbc0e3bb6a38d81c
remote: refactor how unprivileged user session connection is identified

Currently the VIR_DRV_OPEN_REMOTE_USER flag is only set when we identify
that we're connecting to a local libvirtd daemon. We would like to be
able to set that even if connecting to a remote libvirtd daemon. This
entails refactoring the conditional check.

One subtle change is that the VIR_DRV_OPEN_REMOTE_USER is now set when
the test+XXX://  URI is used, even if a servername is present. This has
no effect in this patch, but will later.

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