]> git.proxmox.com Git - mirror_qemu.git/commitdiff
seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist
authorPaul Moore <pmoore@redhat.com>
Wed, 26 Feb 2014 15:25:01 +0000 (10:25 -0500)
committerEduardo Otubo <otubo@linux.vnet.ibm.com>
Fri, 25 Apr 2014 17:52:03 +0000 (14:52 -0300)
Additional testing reveals that PulseAudio requires shmctl() and the
mlock()/munlock() syscalls on some systems/configurations.  As before,
on systems that do require these syscalls, the problem can be seen with
the following command line:

  # qemu -monitor stdio  -sandbox on \
         -device intel-hda -device hda-duplex

Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
qemu-seccomp.c

index 46554bda4bb948a6ad7b005a896a32ded6cf6b9f..ea8094d043380d0456d7fdbeb4bd8aefbc866057 100644 (file)
@@ -227,7 +227,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(shmget), 240 },
     { SCMP_SYS(shmat), 240 },
     { SCMP_SYS(shmdt), 240 },
-    { SCMP_SYS(timerfd_create), 240 }
+    { SCMP_SYS(timerfd_create), 240 },
+    { SCMP_SYS(shmctl), 240 },
+    { SCMP_SYS(mlock), 240 },
+    { SCMP_SYS(munlock), 240 }
 };
 
 int seccomp_start(void)