Received: from eggs.gnu.org ([2001:4830:134:3::10]:53933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKNuc-0007c4-IV for qemu-devel@nongnu.org; Thu, 21 Aug 2014 04:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKNuW-0002bf-Jl for qemu-devel@nongnu.org; Thu, 21 Aug 2014 04:40:02 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:49302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKNuW-0002bU-DM for qemu-devel@nongnu.org; Thu, 21 Aug 2014 04:39:56 -0400 Received: by mail-wi0-f174.google.com with SMTP id d1so8312474wiv.1 for ; Thu, 21 Aug 2014 01:39:55 -0700 (PDT) From: Eduardo Otubo Date: Thu, 21 Aug 2014 10:39:50 +0200 Message-Id: <1408610390-815-2-git-send-email-eduardo.otubo@profitbricks.com> In-Reply-To: <1408610390-815-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1408610390-815-1-git-send-email-eduardo.otubo@profitbricks.com> Subject: [Qemu-devel] [PULL 01/01] seccomp: add semctl() to the syscall whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pmoore@redhat.com, Eduardo Otubo From: Paul Moore 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 --- qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index ea8094d..0503764 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) -- 1.9.1