Commit 9c2d6867 authored by rickyz's avatar rickyz Committed by Commit bot

Linux sandbox: Restrict sched_* calls in the renderer policy.

BUG=413855

Review URL: https://codereview.chromium.org/639183003

Cr-Commit-Position: refs/heads/master@{#299193}
parent 1056c8a4
...@@ -43,16 +43,17 @@ ResultExpr RendererProcessPolicy::EvaluateSyscall(int sysno) const { ...@@ -43,16 +43,17 @@ ResultExpr RendererProcessPolicy::EvaluateSyscall(int sysno) const {
case __NR_mremap: // See crbug.com/149834. case __NR_mremap: // See crbug.com/149834.
case __NR_pread64: case __NR_pread64:
case __NR_pwrite64: case __NR_pwrite64:
case __NR_sched_getaffinity:
case __NR_sched_get_priority_max: case __NR_sched_get_priority_max:
case __NR_sched_get_priority_min: case __NR_sched_get_priority_min:
case __NR_sched_getparam:
case __NR_sched_getscheduler:
case __NR_sched_setscheduler:
case __NR_sysinfo: case __NR_sysinfo:
case __NR_times: case __NR_times:
case __NR_uname: case __NR_uname:
return Allow(); return Allow();
case __NR_sched_getaffinity:
case __NR_sched_getparam:
case __NR_sched_getscheduler:
case __NR_sched_setscheduler:
return sandbox::RestrictSchedTarget(GetPolicyPid(), sysno);
case __NR_prlimit64: case __NR_prlimit64:
return Error(EPERM); // See crbug.com/160157. return Error(EPERM); // See crbug.com/160157.
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment