From: Ján Tomko Date: Fri, 24 Sep 2021 14:20:01 +0000 (+0200) Subject: qemu: seccomp: remove dead code X-Git-Tag: v7.8.0-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb8951e687232738f64fa6f8b49a768feeff7cc;p=thirdparty%2Flibvirt.git qemu: seccomp: remove dead code There is no QEMU we support that would need the old syntax for -sandbox on. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index fa9998a191..48df8818a6 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -10119,7 +10119,6 @@ qemuBuildSeccompSandboxCommandLine(virCommand *cmd, return 0; } - /* Use blacklist by default if supported */ if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SECCOMP_SANDBOX)) { virCommandAddArgList(cmd, "-sandbox", "on,obsolete=deny,elevateprivileges=deny," @@ -10128,10 +10127,6 @@ qemuBuildSeccompSandboxCommandLine(virCommand *cmd, return 0; } - /* Seccomp whitelist is opt-in */ - if (cfg->seccompSandbox > 0) - virCommandAddArgList(cmd, "-sandbox", "on", NULL); - return 0; }