summaryrefslogtreecommitdiff
path: root/repo/thunderbird/sandbox-sched_setscheduler.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-01 18:23:59 +0100
committerdavidovski <david@davidovski.xyz>2022-06-01 18:23:59 +0100
commitfccdaa986f67f820df2914bef851d5fed77abac8 (patch)
tree6bc6503af26cbc32f5db1558c129f7303282172e /repo/thunderbird/sandbox-sched_setscheduler.patch
parentfa2c7177695d2072d541057a9610e55b51ff4db1 (diff)
added thunderbird and qt5
Diffstat (limited to 'repo/thunderbird/sandbox-sched_setscheduler.patch')
-rw-r--r--repo/thunderbird/sandbox-sched_setscheduler.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/repo/thunderbird/sandbox-sched_setscheduler.patch b/repo/thunderbird/sandbox-sched_setscheduler.patch
new file mode 100644
index 0000000..1db645a
--- /dev/null
+++ b/repo/thunderbird/sandbox-sched_setscheduler.patch
@@ -0,0 +1,23 @@
+upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
+diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
+index 27da4e7..5a607a4 100644
+--- a/security/sandbox/linux/SandboxFilter.cpp
++++ b/security/sandbox/linux/SandboxFilter.cpp
+@@ -1455,6 +1455,7 @@ class GMPSandboxPolicy : public SandboxPolicyCommon {
+ return Trap(OpenTrap, mFiles);
+
+ case __NR_brk:
++ case __NR_sched_setscheduler:
+ // Because Firefox on glibc resorts to the fallback implementation
+ // mentioned in bug 1576006, we must explicitly allow the get*id()
+ // functions in order to use NSS in the clearkey CDM.
+@@ -1467,8 +1468,7 @@ class GMPSandboxPolicy : public SandboxPolicyCommon {
+ case __NR_sched_get_priority_max:
+ return Allow();
+ case __NR_sched_getparam:
+- case __NR_sched_getscheduler:
+- case __NR_sched_setscheduler: {
++ case __NR_sched_getscheduler: {
+ Arg<pid_t> pid(0);
+ return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
+ }