From: Paul Moore Date: Thu, 14 Aug 2014 17:19:32 +0000 (-0400) Subject: seccomp: add semctl() to the syscall whitelist X-Git-Tag: v2.2.0-rc0~166^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b22876cc2f863c58cfebd4a5301fc47e8ec89228;p=thirdparty%2Fqemu.git seccomp: add semctl() to the syscall whitelist 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 Signed-off-by: Eduardo Otubo --- diff --git a/qemu-seccomp.c b/qemu-seccomp.c index ea8094d0433..05037640478 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -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)