aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtwebengine/sandbox-sched_getparam.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-02-20 16:12:31 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-24 19:18:43 -0300
commit65f58742e6e669c7d0f5b23c0764f4f73661980b (patch)
tree76a9004e9c481ced23debc121c304bdc24273ae4 /community/qt5-qtwebengine/sandbox-sched_getparam.patch
parent76ca77d9ba8ee59f1a761b7d44252958584347bc (diff)
downloadaports-65f58742e6e669c7d0f5b23c0764f4f73661980b.tar.bz2
aports-65f58742e6e669c7d0f5b23c0764f4f73661980b.tar.xz
{community,testing}/qt: upgrade to 5.14.1
Diffstat (limited to 'community/qt5-qtwebengine/sandbox-sched_getparam.patch')
-rw-r--r--community/qt5-qtwebengine/sandbox-sched_getparam.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/qt5-qtwebengine/sandbox-sched_getparam.patch b/community/qt5-qtwebengine/sandbox-sched_getparam.patch
new file mode 100644
index 0000000000..15c33a57f0
--- /dev/null
+++ b/community/qt5-qtwebengine/sandbox-sched_getparam.patch
@@ -0,0 +1,24 @@
+Allow SYS_sched_getparam and SYS_sched_getscheduler
+musl uses them for pthread_getschedparam()
+
+source: https://git.alpinelinux.org/aports/commit/community/chromium?id=54af9f8ac24f52d382c5758e2445bf0206eff40e
+
+--- qtwebengine/src/3rdparty/chromium/services/service_manager/sandbox/linux/bpf_renderer_policy_linux.cc 2019-11-12 20:48:20.013724661 +0100
++++ qtwebengine/src/3rdparty/chromium/services/service_manager/sandbox/linux/bpf_renderer_policy_linux.cc.patched 2019-11-12 20:58:57.330695676 +0100
+@@ -93,10 +93,16 @@
+ case __NR_sysinfo:
+ case __NR_times:
+ case __NR_uname:
++#if !defined(__GLIBC__)
++ case __NR_sched_getparam:
++ case __NR_sched_getscheduler:
++#endif
+ return Allow();
+ case __NR_sched_getaffinity:
++#if defined(__GLIBC__)
+ case __NR_sched_getparam:
+ case __NR_sched_getscheduler:
++#endif
+ case __NR_sched_setscheduler:
+ return sandbox::RestrictSchedTarget(GetPolicyPid(), sysno);
+ case __NR_prlimit64: