]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
seccomp: add mbind() to the syscall whitelist
authorPaul Moore <pmoore@redhat.com>
Wed, 17 Dec 2014 20:50:09 +0000 (15:50 -0500)
committerEduardo Otubo <eduardo.otubo@profitbricks.com>
Mon, 5 Jan 2015 17:13:38 +0000 (18:13 +0100)
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 <pmoore@redhat.com>
Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
Acked-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
qemu-seccomp.c

index af6a375127d60865d427bf38423b1cf40661569b..b0c626984f78ed2bbd8e07cc708152f37f0c3621 100644 (file)
@@ -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)