]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: assume seccomp sandbox is supported since qemu 1.2
authorJán Tomko <jtomko@redhat.com>
Mon, 10 Dec 2012 15:28:55 +0000 (16:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Dec 2012 17:52:29 +0000 (18:52 +0100)
Currently there is no way to detect it via QMP and requesting "-sandbox
off" works correctly even if it was compiled out, so this will work
unless someone both requests the sandbox in qemu.conf and builds QEMU
without the support for it.

src/qemu/qemu_capabilities.c

index 01a1b98193be137b0454c40c3f9043bc4c98bd91..98e65f16c0075bde5675df3039a51d87f5f8b807 100644 (file)
@@ -2283,6 +2283,7 @@ qemuCapsInitQMPBasic(qemuCapsPtr caps)
     qemuCapsSet(caps, QEMU_CAPS_WAKEUP);
     qemuCapsSet(caps, QEMU_CAPS_NO_USER_CONFIG);
     qemuCapsSet(caps, QEMU_CAPS_NETDEV_BRIDGE);
+    qemuCapsSet(caps, QEMU_CAPS_SECCOMP_SANDBOX);
 }