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..ec75934126dff96008c906c48980dc9d7582ee00 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(GetPolicyPid(), sysno); |
case __NR_ioctl: |
return Error(ENOTTY); // Flash Access. |
default: |