Blame 0107-seccomp-fine-tuning-whitelist-by-adding-times.patch

4b5742
From aafda3de0ce3589fa69472bd4a1782c65c8c7ade Mon Sep 17 00:00:00 2001
4b5742
From: Eduardo Otubo <otubo@linux.vnet.ibm.com>
4b5742
Date: Tue, 24 Sep 2013 14:50:44 -0300
4b5742
Subject: [PATCH] seccomp: fine tuning whitelist by adding times()
4b5742
4b5742
This was causing Qemu process to hang when using -sandbox on as
4b5742
discribed on RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175
4b5742
4b5742
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
4b5742
Tested-by: Paul Moore <pmoore@redhat.com>
4b5742
Acked-by: Paul Moore <pmoore@redhat.com>
4b5742
(cherry picked from commit c236f4519c9838801798f3705c17dce9ab9e3b9d)
4b5742
---
4b5742
 qemu-seccomp.c | 1 +
4b5742
 1 file changed, 1 insertion(+)
4b5742
4b5742
diff --git a/qemu-seccomp.c b/qemu-seccomp.c
4b5742
index 37d38f8..69cee44 100644
4b5742
--- a/qemu-seccomp.c
4b5742
+++ b/qemu-seccomp.c
4b5742
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
4b5742
     { SCMP_SYS(getuid), 245 },
4b5742
     { SCMP_SYS(geteuid), 245 },
4b5742
     { SCMP_SYS(timer_create), 245 },
4b5742
+    { SCMP_SYS(times), 245 },
4b5742
     { SCMP_SYS(exit), 245 },
4b5742
     { SCMP_SYS(clock_gettime), 245 },
4b5742
     { SCMP_SYS(time), 245 },