seccomp: fine tuning whitelist by adding times()
authorEduardo Otubo <otubo@linux.vnet.ibm.com>
Tue, 24 Sep 2013 17:50:44 +0000 (14:50 -0300)
committerEduardo Otubo <otubo@linux.vnet.ibm.com>
Tue, 24 Sep 2013 18:15:16 +0000 (15:15 -0300)
This was causing Qemu process to hang when using -sandbox on as
discribed on RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
Tested-by: Paul Moore <pmoore@redhat.com>
Acked-by: Paul Moore <pmoore@redhat.com>
qemu-seccomp.c

index 37d38f881c79b1f89d1e369c794896df7d0504e2..69cee443afaff5813c5533c7739de0bb7e6d274f 100644 (file)
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(getuid), 245 },
     { SCMP_SYS(geteuid), 245 },
     { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
     { SCMP_SYS(exit), 245 },
     { SCMP_SYS(clock_gettime), 245 },
     { SCMP_SYS(time), 245 },