Received: from eggs.gnu.org ([2001:4830:134:3::10]:42750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bme0K-0001rR-Mj for qemu-devel@nongnu.org; Wed, 21 Sep 2016 05:39:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bme0G-0000uL-MS for qemu-devel@nongnu.org; Wed, 21 Sep 2016 05:39:48 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:38004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bme0G-0000ti-Fs for qemu-devel@nongnu.org; Wed, 21 Sep 2016 05:39:44 -0400 Received: by mail-wm0-f47.google.com with SMTP id l132so80895861wmf.1 for ; Wed, 21 Sep 2016 02:39:44 -0700 (PDT) From: Eduardo Otubo Date: Wed, 21 Sep 2016 11:38:19 +0200 Message-Id: <1474450699-17017-2-git-send-email-eduardo.otubo@profitbricks.com> In-Reply-To: <1474450699-17017-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1474450699-17017-1-git-send-email-eduardo.otubo@profitbricks.com> Subject: [Qemu-devel] [PULL 01/01] seccomp: adding getrusage to the whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Eduardo Otubo , Brian Rak 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 Acked-by: Eduardo Otubo --- qemu-seccomp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index cb569dc..df75d9c 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -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 }, -- 2.7.4