From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1ONh-0002No-FM for qemu-devel@nongnu.org; Wed, 17 Dec 2014 18:51:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1ONa-0003ZB-1A for qemu-devel@nongnu.org; Wed, 17 Dec 2014 18:51:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1ONZ-0003Yk-QP for qemu-devel@nongnu.org; Wed, 17 Dec 2014 18:51:41 -0500 Date: Wed, 17 Dec 2014 21:51:37 -0200 From: Eduardo Habkost Message-ID: <20141217235137.GA9468@thinpad.lan.raisama.net> References: <20141217205009.28322.63696.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141217205009.28322.63696.stgit@localhost> Subject: Re: [Qemu-devel] [PATCH] seccomp: add mbind() to the syscall whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Moore Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, eduardo.otubo@profitbricks.com On Wed, Dec 17, 2014 at 03:50:09PM -0500, Paul Moore wrote: > The "memory-backend-ram" QOM object utilizes the mbind(2) syscall to > set the policy for a memory range. Add the syscall to the seccomp > sandbox whitelist. > > Signed-off-by: Paul Moore Tested-by: Eduardo Habkost Reviewed-by: Eduardo Habkost > --- > qemu-seccomp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qemu-seccomp.c b/qemu-seccomp.c > index af6a375..b0c6269 100644 > --- a/qemu-seccomp.c > +++ b/qemu-seccomp.c > @@ -235,7 +235,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { > { SCMP_SYS(fallocate), 240 }, > { SCMP_SYS(fadvise64), 240 }, > { SCMP_SYS(inotify_init1), 240 }, > - { SCMP_SYS(inotify_add_watch), 240 } > + { SCMP_SYS(inotify_add_watch), 240 }, > + { SCMP_SYS(mbind), 240 } > }; > > int seccomp_start(void) > > -- Eduardo