From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5ug-0008VU-MC for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO5uX-0003kK-Iv for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:43:10 -0400 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:34934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5uX-0003jx-6l for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:43:01 -0400 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Mar 2014 10:42:58 -0300 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id D136B1DC0054 for ; Thu, 13 Mar 2014 09:42:55 -0400 (EDT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2DDgwM14685828 for ; Thu, 13 Mar 2014 10:42:58 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2DDgt9x011315 for ; Thu, 13 Mar 2014 10:42:55 -0300 From: Eduardo Otubo Date: Thu, 13 Mar 2014 10:42:44 -0300 Message-Id: <1394718164-7883-3-git-send-email-otubo@linux.vnet.ibm.com> In-Reply-To: <1394718164-7883-1-git-send-email-otubo@linux.vnet.ibm.com> References: <1394718164-7883-1-git-send-email-otubo@linux.vnet.ibm.com> Subject: [Qemu-devel] [PULL 02/02] seccomp: add shmctl(), mlock(), and munlock() 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, debfx@fobos.de From: Paul Moore Additional testing reveals that PulseAudio requires shmctl() and the mlock()/munlock() syscalls on some systems/configurations. As before, on systems that do require these syscalls, the problem can be seen with the following command line: # qemu -monitor stdio -sandbox on \ -device intel-hda -device hda-duplex Signed-off-by: Paul Moore Acked-by: Eduardo Otubo --- qemu-seccomp.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 46554bd..ea8094d 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -227,7 +227,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(shmget), 240 }, { SCMP_SYS(shmat), 240 }, { SCMP_SYS(shmdt), 240 }, - { SCMP_SYS(timerfd_create), 240 } + { SCMP_SYS(timerfd_create), 240 }, + { SCMP_SYS(shmctl), 240 }, + { SCMP_SYS(mlock), 240 }, + { SCMP_SYS(munlock), 240 } }; int seccomp_start(void) -- 1.7.1