From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1WQU-0003ww-Ik for qemu-devel@nongnu.org; Thu, 18 Dec 2014 03:27:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1WQO-0005cW-NS for qemu-devel@nongnu.org; Thu, 18 Dec 2014 03:27:14 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:62080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1WQO-0005c8-Hk for qemu-devel@nongnu.org; Thu, 18 Dec 2014 03:27:08 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so885582wid.15 for ; Thu, 18 Dec 2014 00:27:06 -0800 (PST) Date: Thu, 18 Dec 2014 09:27:04 +0100 From: Eduardo Otubo Message-ID: <20141218082704.GA7488@vader> References: <20141217205009.28322.63696.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 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 > --- > 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) > Acked-by: Eduardo Otubo I have a minor fix already in plan, so I'll do a pull request tomorrow by the end of the day. Thanks for the patch. -- Eduardo Otubo ProfitBricks GmbH