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

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

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]