render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c1c534
From be8c0df9c361446003821c35af1531187d0080b9 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <be8c0df9c361446003821c35af1531187d0080b9@dist-git>
c1c534
From: John Ferlan <jferlan@redhat.com>
c1c534
Date: Fri, 24 Nov 2017 12:13:52 -0500
c1c534
Subject: [PATCH] nodedev: Restore setting of privileged
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1517372
c1c534
c1c534
Commit id '36555364' removed the setting of the driver->privileged,
c1c534
which the udevProcessPCI would need in order to read the PCI device
c1c534
configs.
c1c534
c1c534
Signed-off-by: John Ferlan <jferlan@redhat.com>
c1c534
(cherry picked from commit 9bfcf3ccdd2a0bb599dff27f97d5c1524cba1b79)
c1c534
Reviewed-by: Erik Skultety <eskultet@redhat.com>
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 src/node_device/node_device_udev.c | 2 ++
c1c534
 1 file changed, 2 insertions(+)
c1c534
c1c534
diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
c1c534
index d48334b857..ed012200f5 100644
c1c534
--- a/src/node_device/node_device_udev.c
c1c534
+++ b/src/node_device/node_device_udev.c
c1c534
@@ -1933,6 +1933,8 @@ nodeStateInitialize(bool privileged,
c1c534
         return -1;
c1c534
     }
c1c534
 
c1c534
+    driver->privileged = privileged;
c1c534
+
c1c534
     if (!(driver->devs = virNodeDeviceObjListNew()) ||
c1c534
         !(priv = udevEventDataNew()))
c1c534
         goto cleanup;
c1c534
-- 
c1c534
2.15.1
c1c534