]> xenbits.xensource.com Git - libvirt.git/commitdiff
nodedev: Restore setting of privileged
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Nov 2017 15:34:11 +0000 (10:34 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 24 Nov 2017 12:17:37 +0000 (07:17 -0500)
Commit id '36555364' removed the setting of the driver->privileged,
which the udevProcessPCI would need in order to read the PCI device
configs.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/node_device/node_device_udev.c

index 35df13b153e68b86d3b4d4d80778b4a2a9b21130..1e1b71742bdf9dfa59373d15e98ef6d05ec21bfc 100644 (file)
@@ -1933,6 +1933,8 @@ nodeStateInitialize(bool privileged,
         return -1;
     }
 
+    driver->privileged = privileged;
+
     if (!(driver->devs = virNodeDeviceObjListNew()) ||
         !(priv = udevEventDataNew()))
         goto cleanup;