[libvirt] [PATCH] Parse qemu config before SecurityInit

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

 



We aren't parsing qemu.conf before initializing the security driver, yet
the config contains relevant security options. The attached patch swaps
the ordering, which fixes things for me.

Thanks,
Cole
diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index e73bd3a..ed68ff4 100644
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -496,11 +496,11 @@ qemudStartup(void) {
     if ((qemu_driver->caps = qemudCapsInit()) == NULL)
         goto out_of_memory;
 
-    if (qemudSecurityInit(qemu_driver) < 0) {
+    if (qemudLoadDriverConfig(qemu_driver, driverConf) < 0) {
         goto error;
     }
 
-    if (qemudLoadDriverConfig(qemu_driver, driverConf) < 0) {
+    if (qemudSecurityInit(qemu_driver) < 0) {
         goto error;
     }
 
--
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]