mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Allow RO connections to interface udev backend
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.
This commit is contained in:
parent
3913a5f12a
commit
027a7707be
@ -139,7 +139,7 @@ udevInterfaceOpen(virConnectPtr conn,
|
|||||||
{
|
{
|
||||||
struct udev_iface_driver *driverState = NULL;
|
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) {
|
if (VIR_ALLOC(driverState) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
|
Loading…
Reference in New Issue
Block a user