Bug 1413312 - Fix media plugin sandbox policy for sched_get_priority_{min,max}. r=gcp
authorJed Davis <jld@mozilla.com>
Tue, 31 Oct 2017 18:12:43 -0600
changeset 443630 4ccd1fbb5ea660f79c573f5b95d15188de3b8a94
parent 443629 67cb7ca658a7a2e9a4aaebb0801a3f93c50deba7
child 443631 62b4fc74e72e6592f12827a53a318057fac8a59b
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1413312
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1413312 - Fix media plugin sandbox policy for sched_get_priority_{min,max}. r=gcp MozReview-Commit-ID: Bz4EWU13HAJ
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -1125,20 +1125,21 @@ public:
 #ifdef MOZ_ASAN
         .ElseIf(advice == MADV_DONTDUMP, Allow())
 #endif
         .Else(InvalidSyscall());
     }
     case __NR_brk:
     CASES_FOR_geteuid:
       return Allow();
+    case __NR_sched_get_priority_min:
+    case __NR_sched_get_priority_max:
+      return Allow();
     case __NR_sched_getparam:
     case __NR_sched_getscheduler:
-    case __NR_sched_get_priority_min:
-    case __NR_sched_get_priority_max:
     case __NR_sched_setscheduler: {
       Arg<pid_t> pid(0);
       return If(pid == 0, Allow())
         .Else(Trap(SchedTrap, nullptr));
     }
 
     // For clock(3) on older glibcs; bug 1304220.
     case __NR_times: