projects/aports·blob master · refs

24 lines · 1.0 KiB

1upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
2diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
3index ed958bc..9824433 100644
4--- a/security/sandbox/linux/SandboxFilter.cpp
5+++ b/security/sandbox/linux/SandboxFilter.cpp
6@@ -1751,6 +1751,6 @@ class GMPSandboxPolicy : public SandboxPolicyCommon {
7 case __NR_sched_get_priority_max:
8+ case __NR_sched_setscheduler:
9 return Allow();
10 case __NR_sched_getparam:
11- case __NR_sched_getscheduler:
12- case __NR_sched_setscheduler: {
13+ case __NR_sched_getscheduler: {
14 Arg<pid_t> pid(0);
15@@ -1926,3 +1926,2 @@ class RDDSandboxPolicy final : public SandboxPolicyCommon {
16 case __NR_sched_getscheduler:
17- case __NR_sched_setscheduler:
18 case __NR_sched_getattr:
19@@ -1932,2 +1931,5 @@ class RDDSandboxPolicy final : public SandboxPolicyCommon {
20 }
21+ // sched_setscheduler gets special treatment here (bug 1657849):
22+ case __NR_sched_setscheduler:
23+ return Allow();
24