]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: capabilities: do not look at parameters for sandbox
authorJán Tomko <jtomko@redhat.com>
Fri, 24 Sep 2021 14:23:32 +0000 (16:23 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 27 Sep 2021 08:11:21 +0000 (10:11 +0200)
Assume the presence of the 'sandbox' option is enough,
no need to look at the parameters.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c

index 4f18a2488a1369bac7a98fcf0bfea8146a36ef30..bfb59965e2033e8b7be2961ac9a62164ca79e37f 100644 (file)
@@ -3208,7 +3208,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
     { "machine", "kernel_irqchip", QEMU_CAPS_MACHINE_KERNEL_IRQCHIP },
     { "numa", NULL, QEMU_CAPS_NUMA }, /* not needed after qemuCaps->version < 3000000 */
     { "overcommit", NULL, QEMU_CAPS_OVERCOMMIT },
-    { "sandbox", "enable", QEMU_CAPS_SECCOMP_SANDBOX },
+    { "sandbox", NULL, QEMU_CAPS_SECCOMP_SANDBOX },
     { "spice", "gl", QEMU_CAPS_SPICE_GL },
     { "spice", "unix", QEMU_CAPS_SPICE_UNIX },
     { "spice", "rendernode", QEMU_CAPS_SPICE_RENDERNODE },