]> git.proxmox.com Git - mirror_qemu.git/commitdiff
seccomp: add semctl() to the syscall whitelist
authorPaul Moore <pmoore@redhat.com>
Thu, 14 Aug 2014 17:19:32 +0000 (13:19 -0400)
committerEduardo Otubo <eduardo.otubo@profitbricks.com>
Thu, 21 Aug 2014 08:29:16 +0000 (10:29 +0200)
QEMU needs to call semctl() for correct operation.  This particular
problem was identified on shutdown with the following commandline:

 # qemu -sandbox on -monitor stdio \
   -device intel-hda -device hda-duplex -vnc :0

Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
qemu-seccomp.c

index ea8094d043380d0456d7fdbeb4bd8aefbc866057..050376404782418f4fbd414d8fda1844da023a1e 100644 (file)
@@ -230,7 +230,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(timerfd_create), 240 },
     { SCMP_SYS(shmctl), 240 },
     { SCMP_SYS(mlock), 240 },
-    { SCMP_SYS(munlock), 240 }
+    { SCMP_SYS(munlock), 240 },
+    { SCMP_SYS(semctl), 240 }
 };
 
 int seccomp_start(void)