Index: content/common/sandbox_linux/bpf_ppapi_policy_linux.cc |
diff --git a/content/common/sandbox_linux/bpf_ppapi_policy_linux.cc b/content/common/sandbox_linux/bpf_ppapi_policy_linux.cc |
index 91b4c401d8f99918ac38f45786f2a17f31c27449..092cfcf7e80e39ba5e4d20b5086dae6aeae06e65 100644 |
--- a/content/common/sandbox_linux/bpf_ppapi_policy_linux.cc |
+++ b/content/common/sandbox_linux/bpf_ppapi_policy_linux.cc |
@@ -31,12 +31,13 @@ ResultExpr PpapiProcessPolicy::EvaluateSyscall(int sysno) const { |
case __NR_pwrite64: |
case __NR_sched_get_priority_max: |
case __NR_sched_get_priority_min: |
+ case __NR_times: |
+ return Allow(); |
case __NR_sched_getaffinity: |
case __NR_sched_getparam: |
case __NR_sched_getscheduler: |
case __NR_sched_setscheduler: |
- case __NR_times: |
- return Allow(); |
+ return sandbox::RestrictSchedTarget(current_pid(), sysno); |
case __NR_ioctl: |
return Error(ENOTTY); // Flash Access. |
default: |