diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-01-19 23:31:01 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-01-19 23:31:58 +0100 |
commit | a24ac7cc23b2507ee42b078e1d68be28be78e181 (patch) | |
tree | f0ad58c8fde2ce2777a740d716785ad56811c351 /community/chromium/musl-fix-getrlimit-failed.patch | |
parent | 29d57b8f7088ab8e34d64fb482bda0bd034b33f7 (diff) | |
download | aports-a24ac7cc23b2507ee42b078e1d68be28be78e181.tar.bz2 aports-a24ac7cc23b2507ee42b078e1d68be28be78e181.tar.xz |
community/chromium: fix getrlimit(RLIMIT_NOFILE) failed
Diffstat (limited to 'community/chromium/musl-fix-getrlimit-failed.patch')
-rw-r--r-- | community/chromium/musl-fix-getrlimit-failed.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/chromium/musl-fix-getrlimit-failed.patch b/community/chromium/musl-fix-getrlimit-failed.patch new file mode 100644 index 0000000000..08692abf16 --- /dev/null +++ b/community/chromium/musl-fix-getrlimit-failed.patch @@ -0,0 +1,24 @@ +Date: Wed, 18 Jan 2017 09:51:29 -0600 +From: Samuel Holland <samuel@...lland.org> +Subject: Re: getrlimit failed (chromium on musl) + +> Running chromium on a musl system spams this message: +> +> getrlimit(RLIMIT_NOFILE) failed + +The problem is that the sandbox blocks prlimit64 with EPERM, but musl +only falls back to getrlimit on ENOSYS. The diff below will fix the +error. From the linked bug, the only reason it is blocked in the first +place is ChromeOS, and this change should be fine even there. + +--- content/common/sandbox_linux/bpf_renderer_policy_linux.cc.orig ++++ content/common/sandbox_linux/bpf_renderer_policy_linux.cc +@@ -88,7 +88,7 @@ + case __NR_sched_setscheduler: + return sandbox::RestrictSchedTarget(GetPolicyPid(), sysno); + case __NR_prlimit64: +- return Error(EPERM); // See crbug.com/160157. ++ return Error(ENOSYS); // See crbug.com/160157. + default: + // Default on the content baseline policy. + return SandboxBPFBasePolicy::EvaluateSyscall(sysno); |