Index: sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
index 60c16d37302b880a63db88fcd2ebbbcb97f6a1da..7ae638691f2b767be8c5ebb8cf8077e37c43c036 100644 |
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
@@ -30,6 +30,7 @@ |
#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
#include "sandbox/linux/system_headers/linux_futex.h" |
#include "sandbox/linux/system_headers/linux_syscalls.h" |
+#include "sandbox/linux/system_headers/linux_time.h" |
// PNaCl toolchain does not provide sys/ioctl.h header. |
#if !defined(OS_NACL_NONSFI) |
@@ -307,8 +308,10 @@ ResultExpr RestrictClockID() { |
clockid == base::TimeTicks::kClockSystemTrace || |
#endif |
clockid == CLOCK_MONOTONIC || |
+ clockid == CLOCK_MONOTONIC_COARSE || |
clockid == CLOCK_PROCESS_CPUTIME_ID || |
clockid == CLOCK_REALTIME || |
+ clockid == CLOCK_REALTIME_COARSE || |
clockid == CLOCK_THREAD_CPUTIME_ID, |
Allow()).Else(CrashSIGSYS()); |
} |