From: Paul Moore Date: Wed, 15 Jan 2014 19:38:58 +0000 (-0500) Subject: seccomp: add some basic shared memory syscalls to the whitelist X-Git-Tag: v2.0.0-rc0~143^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=918b94e2873cd5fe8aef06d269b4a4c7d0832ce7;p=thirdparty%2Fqemu.git seccomp: add some basic shared memory syscalls to the whitelist PulseAudio requires the use of shared memory so add shmget(), shmat(), and shmdt() to the syscall whitelist. Reported-by: xuhan@redhat.com Signed-off-by: Paul Moore --- diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 89f244fcb2d..caa926ebf2d 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -222,7 +222,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(io_destroy), 241 }, { SCMP_SYS(arch_prctl), 240 }, { SCMP_SYS(mkdir), 240 }, - { SCMP_SYS(fchmod), 240 } + { SCMP_SYS(fchmod), 240 }, + { SCMP_SYS(shmget), 240 }, + { SCMP_SYS(shmat), 240 }, + { SCMP_SYS(shmdt), 240 } }; int seccomp_start(void)