From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3WIu-0006Rx-UG for qemu-devel@nongnu.org; Wed, 15 Jan 2014 14:39:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3WIo-00062v-VO for qemu-devel@nongnu.org; Wed, 15 Jan 2014 14:39:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3WIo-00062m-NB for qemu-devel@nongnu.org; Wed, 15 Jan 2014 14:39:02 -0500 From: Paul Moore Date: Wed, 15 Jan 2014 14:38:58 -0500 Message-ID: <20140115193858.10562.38583.stgit@localhost> In-Reply-To: <20140115193744.10562.46110.stgit@localhost> References: <20140115193744.10562.46110.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 2/2] seccomp: add some basic shared memory syscalls to the whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corey Bryant , qemu-devel@nongnu.org, Eduardo Otubo PulseAudio requires the use of shared memory so add shmget(), shmat(), and shmdt() to the syscall whitelist. Reported-by: xuhan@redhat.com Signed-off-by: Paul Moore --- qemu-seccomp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 89f244f..caa926e 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -222,7 +222,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(io_destroy), 241 }, { SCMP_SYS(arch_prctl), 240 }, { SCMP_SYS(mkdir), 240 }, - { SCMP_SYS(fchmod), 240 } + { SCMP_SYS(fchmod), 240 }, + { SCMP_SYS(shmget), 240 }, + { SCMP_SYS(shmat), 240 }, + { SCMP_SYS(shmdt), 240 } }; int seccomp_start(void)