```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
790 B
Diff
20 lines
790 B
Diff
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
|
|
|
|
--- a/sandbox/policy/linux/bpf_renderer_policy_linux.cc 2019-10-08 21:03:18.253080425 +0200
|
|
+++ b/sandbox/policy/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:
|