From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7OiT-0007qY-E2 for qemu-devel@nongnu.org; Sun, 26 Jan 2014 07:21:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7OiO-0000GE-B0 for qemu-devel@nongnu.org; Sun, 26 Jan 2014 07:21:33 -0500 Received: from fobos.de ([188.165.199.226]:42884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7OiO-0000Ch-1i for qemu-devel@nongnu.org; Sun, 26 Jan 2014 07:21:28 -0500 Message-ID: <52E4FDC4.3050204@fobos.de> Date: Sun, 26 Jan 2014 13:21:24 +0100 From: Felix Geyer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] seccomp: add timerfd_create and timerfd_settime to the whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eduardo Otubo libusb calls timerfd_create() and timerfd_settime() when it's built with timerfd support. Command to reproduce: qemu -sandbox on -monitor stdio -device piix3-usb-uhci,id=usb -device usb-host,hostbus=1,hostaddr=3,id=hostdev0 Log messages: audit(1390730418.924:135): auid=4294967295 uid=121 gid=103 ses=4294967295 pid=5232 comm="qemu-system-x86" sig=31 syscall=283 compat=0 ip=0x7f2b0f4e96a7 code=0x0 audit(1390733100.580:142): auid=4294967295 uid=121 gid=103 ses=4294967295 pid=16909 comm="qemu-system-x86" sig=31 syscall=286 compat=0 ip=0x7f03513a06da code=0x0 Signed-off-by: Felix Geyer --- qemu-seccomp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index caa926e..2705468 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -225,7 +225,9 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(fchmod), 240 }, { SCMP_SYS(shmget), 240 }, { SCMP_SYS(shmat), 240 }, - { SCMP_SYS(shmdt), 240 } + { SCMP_SYS(shmdt), 240 }, + { SCMP_SYS(timerfd_create), 240 }, + { SCMP_SYS(timerfd_settime), 240 } }; int seccomp_start(void) -- 1.8.5.3