render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
fbe740
From dc5c05491ab6e66cb2ce411530cb24a2cd76763b Mon Sep 17 00:00:00 2001
fbe740
Message-Id: <dc5c05491ab6e66cb2ce411530cb24a2cd76763b@dist-git>
fbe740
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
fbe740
Date: Wed, 4 Mar 2020 12:42:38 +0100
fbe740
Subject: [PATCH] qemuxml2xmltest: set driver as privileged
fbe740
MIME-Version: 1.0
fbe740
Content-Type: text/plain; charset=UTF-8
fbe740
Content-Transfer-Encoding: 8bit
fbe740
fbe740
Some validation check might reject unprivileged drivers in the future.
fbe740
fbe740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
fbe740
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
fbe740
Tested-by: Andrea Bolognani <abologna@redhat.com>
fbe740
(cherry picked from commit 99dc98db3d3e2381f322120bf00c25ba0501b092)
fbe740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
fbe740
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
fbe740
Message-Id: <e97eb61c987fdb72ced457131c6c86260dd449a0.1583322090.git.jtomko@redhat.com>
fbe740
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
fbe740
---
fbe740
 tests/qemuxml2xmltest.c | 1 +
fbe740
 1 file changed, 1 insertion(+)
fbe740
fbe740
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
fbe740
index 7c105e5207..d58259587b 100644
fbe740
--- a/tests/qemuxml2xmltest.c
fbe740
+++ b/tests/qemuxml2xmltest.c
fbe740
@@ -162,6 +162,7 @@ mymain(void)
fbe740
         return EXIT_FAILURE;
fbe740
 
fbe740
     cfg = virQEMUDriverGetConfig(&driver);
fbe740
+    driver.privileged = true;
fbe740
 
fbe740
 # define DO_TEST_INTERNAL(_name, suffix, when, ...) \
fbe740
     do { \
fbe740
-- 
fbe740
2.25.1
fbe740