render / rpms / libvirt

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