From 864d2066aeece10cebee83c394076629ba3723e8 Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 8 Oct 2019 21:15:16 +0200 Subject: [PATCH] chromium: allow SYS_sched_getparam and SYS_sched_get_scheduler in render policy fixes #14980 [ci skip] --- .../patches/sandbox-sched_getparam.patch | 20 +++++++++++++++++++ srcpkgs/chromium/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/chromium/patches/sandbox-sched_getparam.patch diff --git a/srcpkgs/chromium/patches/sandbox-sched_getparam.patch b/srcpkgs/chromium/patches/sandbox-sched_getparam.patch new file mode 100644 index 00000000000..aa2d9aa1846 --- /dev/null +++ b/srcpkgs/chromium/patches/sandbox-sched_getparam.patch @@ -0,0 +1,20 @@ +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 + +--- services/service_manager/sandbox/linux/bpf_renderer_policy_linux.cc.orig 2019-10-08 21:03:18.253080425 +0200 ++++ services/service_manager/sandbox/linux/bpf_renderer_policy_linux.cc 2019-10-08 21:04:19.648549718 +0200 +@@ -88,10 +88,10 @@ + case __NR_sysinfo: + case __NR_times: + case __NR_uname: +- return Allow(); +- case __NR_sched_getaffinity: + case __NR_sched_getparam: + case __NR_sched_getscheduler: ++ return Allow(); ++ case __NR_sched_getaffinity: + case __NR_sched_setscheduler: + return sandbox::RestrictSchedTarget(GetPolicyPid(), sysno); + case __NR_prlimit64: diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index 304251bf6c9..24ef78d74ee 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -2,7 +2,7 @@ pkgname=chromium # See http://www.chromium.org/developers/calendar for the latest version version=77.0.3865.90 -revision=1 +revision=2 archs="i686 x86_64*" short_desc="Google's attempt at creating a safer, faster, and more stable browser" maintainer="Enno Boland "