]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: seccomp: remove dead code
authorJán Tomko <jtomko@redhat.com>
Fri, 24 Sep 2021 14:20:01 +0000 (16:20 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 27 Sep 2021 08:11:21 +0000 (10:11 +0200)
There is no QEMU we support that would need the old syntax
for -sandbox on.

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

index fa9998a191a32f87b58ed88f60c2c85332ba49a5..48df8818a6bf515c314795b209420d33674f3e63 100644 (file)
@@ -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;
 
 }