]> git.proxmox.com Git - mirror_qemu.git/commitdiff
seccomp: adding getrusage to the whitelist
authorEduardo Otubo <eduardo.otubo@profitbricks.com>
Wed, 21 Sep 2016 09:09:22 +0000 (11:09 +0200)
committerEduardo Otubo <eduardo.otubo@profitbricks.com>
Wed, 21 Sep 2016 09:26:02 +0000 (11:26 +0200)
getrusage is used in a number of places throughout the qemu codebase
(notably, in crypto/pbkdf.c).  Without this syscall being whitelisted,
qemu ends up getting killed by the kernel whenever you try to connect to
a VNC console.

Signed-off-by: Brian Rak <brak@gameservers.com>
Acked-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
qemu-seccomp.c

index cb569dc05829ff3c877f3274b44f5aab6d25986a..df75d9c4710f7336acac8d9b33cd69a874e08230 100644 (file)
@@ -65,6 +65,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(prctl), 245 },
     { SCMP_SYS(signalfd), 245 },
     { SCMP_SYS(getrlimit), 245 },
+    { SCMP_SYS(getrusage), 245 },
     { SCMP_SYS(set_tid_address), 245 },
     { SCMP_SYS(statfs), 245 },
     { SCMP_SYS(unlink), 245 },