[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/3] qemu: set hv_user/hv_group caps to the user/group which runs qemu



Use QEMU_USER and QEMU_GROUP, that are passed to libvirt at
configure-time, as values for "hv_user" and "hv_group" in the guest
capabilities.

Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 src/qemu/qemu_capabilities.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index ffbede7..d536554 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -749,6 +749,9 @@ virQEMUCapsInitGuest(virCapsPtr caps,
                                          machines)) == NULL)
         goto error;
 
+    if (virCapabilitiesSetHvUserAndGroup(guest, QEMU_USER, QEMU_GROUP) < 0)
+        goto error;
+
     machines = NULL;
     nmachines = 0;
 
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]