Received: from eggs.gnu.org ([2001:4830:134:3::10]:48054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y20rW-0001wB-Qp for qemu-devel@nongnu.org; Fri, 19 Dec 2014 11:57:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y20rM-0002Sa-1G for qemu-devel@nongnu.org; Fri, 19 Dec 2014 11:57:10 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:54912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y20rL-0002SL-Rd for qemu-devel@nongnu.org; Fri, 19 Dec 2014 11:56:59 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so1870325wgh.9 for ; Fri, 19 Dec 2014 08:56:59 -0800 (PST) From: Eduardo Otubo Date: Fri, 19 Dec 2014 17:56:45 +0100 Message-Id: <1419008205-6373-3-git-send-email-eduardo.otubo@profitbricks.com> In-Reply-To: <1419008205-6373-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1419008205-6373-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 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 Tested-by: Eduardo Habkost Reviewed-by: Eduardo Habkost Acked-by: Eduardo Otubo --- 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