]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Allow RO connections to interface udev backend
authorDoug Goldstein <cardoe@cardoe.com>
Fri, 28 Jun 2013 01:43:00 +0000 (20:43 -0500)
committerDoug Goldstein <cardoe@cardoe.com>
Fri, 28 Jun 2013 12:26:04 +0000 (07:26 -0500)
The udev based interface backend did not allow querying data over a
read-only connection which is different than how the netcf backend
operates. This brings the behavior inline with the default, netcf
backend.

src/interface/interface_backend_udev.c

index 68e1e2f2ddbe34cc634306677fcd9bdda1aaafd7..95034bfd517090e0eae13827f076a93bd8a13261 100644 (file)
@@ -139,7 +139,7 @@ udevInterfaceOpen(virConnectPtr conn,
 {
     struct udev_iface_driver *driverState = NULL;
 
-    virCheckFlags(0, VIR_DRV_OPEN_ERROR);
+    virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
 
     if (VIR_ALLOC(driverState) < 0) {
         virReportOOMError();