From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1LY2-0005ZN-M9 for qemu-devel@nongnu.org; Wed, 17 Dec 2014 15:50:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1LXw-0000a6-EU for qemu-devel@nongnu.org; Wed, 17 Dec 2014 15:50:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1LXw-0000a0-6K for qemu-devel@nongnu.org; Wed, 17 Dec 2014 15:50:12 -0500 From: Paul Moore Date: Wed, 17 Dec 2014 15:50:09 -0500 Message-ID: <20141217205009.28322.63696.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] seccomp: add mbind() to the syscall whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, eduardo.otubo@profitbricks.com Cc: pbonzini@redhat.com 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)