]> git.ipfire.org Git - thirdparty/libvirt.git/commit
driver: allow drivers to indicate if they permit remote connections
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 28 Mar 2018 09:53:31 +0000 (10:53 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 12 Apr 2018 15:52:02 +0000 (16:52 +0100)
commit3714cc952d4507e0a90f3e793efbc9360298d224
treed2ee85d176cd3ad31fd63670b33c223029bbbc6e
parent20ad55a8fd8fa096380fde30e8b8755608365bbc
driver: allow drivers to indicate if they permit remote connections

Add a localOnly flag to the virConnectDriver struct which allows a
driver to indicate whether it is local-only, or permits remote
connections. Stateful drivers running inside libvirtd are generally
local only. This allows us to remote the check for uri->server != NULL
from most drivers.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
23 files changed:
src/bhyve/bhyve_driver.c
src/check-aclrules.pl
src/driver.h
src/interface/interface_backend_netcf.c
src/interface/interface_backend_udev.c
src/libvirt.c
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/node_device/node_device_driver.c
src/node_device/node_device_hal.c
src/node_device/node_device_udev.c
src/nwfilter/nwfilter_driver.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/secret/secret_driver.c
src/storage/storage_driver.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vbox/vbox_common.c
src/vbox/vbox_driver.c
src/vmware/vmware_driver.c
src/vz/vz_driver.c