Bug 1413312 - Fix media plugin sandbox policy for sched_get_priority_{min,max}. r=gcp

MozReview-Commit-ID: Bz4EWU13HAJ

--HG--
extra : rebase_source : 848880e083827a6f40e6ba289a5357ff6b4fa5f6
This commit is contained in:
Jed Davis 2017-10-31 18:12:43 -06:00
parent de1cbf125f
commit 0b91cda795

View File

@ -1130,10 +1130,11 @@ public:
case __NR_brk: case __NR_brk:
CASES_FOR_geteuid: CASES_FOR_geteuid:
return Allow(); return Allow();
case __NR_sched_getparam:
case __NR_sched_getscheduler:
case __NR_sched_get_priority_min: case __NR_sched_get_priority_min:
case __NR_sched_get_priority_max: case __NR_sched_get_priority_max:
return Allow();
case __NR_sched_getparam:
case __NR_sched_getscheduler:
case __NR_sched_setscheduler: { case __NR_sched_setscheduler: {
Arg<pid_t> pid(0); Arg<pid_t> pid(0);
return If(pid == 0, Allow()) return If(pid == 0, Allow())