From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3pGi-00018J-Ph for qemu-devel@nongnu.org; Thu, 16 Jan 2014 10:54:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3pGX-0006Q8-NS for qemu-devel@nongnu.org; Thu, 16 Jan 2014 10:54:08 -0500 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:46906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3pGX-0006Ps-A8 for qemu-devel@nongnu.org; Thu, 16 Jan 2014 10:53:57 -0500 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Jan 2014 13:53:56 -0200 Received: from d24relay03.br.ibm.com (d24relay03.br.ibm.com [9.13.184.25]) by d24dlp01.br.ibm.com (Postfix) with ESMTP id 198753520066 for ; Thu, 16 Jan 2014 10:53:51 -0500 (EST) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay03.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0GFrLQq45875234 for ; Thu, 16 Jan 2014 13:53:22 -0200 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 s0GFrp8C017318 for ; Thu, 16 Jan 2014 13:53:52 -0200 Message-ID: <52D8008F.5070003@linux.vnet.ibm.com> Date: Thu, 16 Jan 2014 13:53:51 -0200 From: Eduardo Otubo MIME-Version: 1.0 References: <20140115193744.10562.46110.stgit@localhost> <20140115193858.10562.38583.stgit@localhost> In-Reply-To: <20140115193858.10562.38583.stgit@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Paul Moore Cc: Corey Bryant , qemu-devel@nongnu.org On 01/15/2014 05:38 PM, Paul Moore wrote: > 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 } ACK. -- Eduardo Otubo IBM Linux Technology Center