]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-seccomp.c
seccomp: set the seccomp filter to all threads
[mirror_qemu.git] / qemu-seccomp.c
index f0c833f3cad7f532800e53c7d9a9d0e736e9866b..4729eb107f8ff169a1011dd96264fd2d82910e46 100644 (file)
@@ -149,6 +149,11 @@ static int seccomp_start(uint32_t seccomp_opts)
         goto seccomp_return;
     }
 
+    rc = seccomp_attr_set(ctx, SCMP_FLTATR_CTL_TSYNC, 1);
+    if (rc != 0) {
+        goto seccomp_return;
+    }
+
     for (i = 0; i < ARRAY_SIZE(blacklist); i++) {
         if (!(seccomp_opts & blacklist[i].set)) {
             continue;