Received: from eggs.gnu.org ([2001:4830:134:3::10]:39959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8BNv-0004lA-UD for qemu-devel@nongnu.org; Mon, 05 Jan 2015 12:24:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8BNn-00051D-MD for qemu-devel@nongnu.org; Mon, 05 Jan 2015 12:24:07 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:45177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8BNn-000515-H8 for qemu-devel@nongnu.org; Mon, 05 Jan 2015 12:23:59 -0500 Received: by mail-wg0-f51.google.com with SMTP id x12so27609937wgg.24 for ; Mon, 05 Jan 2015 09:23:59 -0800 (PST) From: Eduardo Otubo Date: Mon, 5 Jan 2015 18:23:49 +0100 Message-Id: <1420478629-32500-3-git-send-email-eduardo.otubo@profitbricks.com> In-Reply-To: <1420478629-32500-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1420478629-32500-1-git-send-email-eduardo.otubo@profitbricks.com> Subject: [Qemu-devel] [PULL 02/02] seccomp: add mbind() to the syscall whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pmoore@redhat.com, peter.maydell@linaro.org, ehabkost@redhat.com, Eduardo Otubo From: Paul Moore 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 Signed-off-by: Eduardo Otubo Acked-by: Eduardo Otubo 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) -- 1.9.1