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

[libvirt] [PATCH] Parse qemu config before SecurityInit



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;
     }
 

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