From 3302b469d8fc87eff4059cd0fe52ab5a4f562b14 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 1 May 2020 17:20:29 +0200 Subject: [PATCH] firefox: fix sandbox crash on musl [ci skip] --- srcpkgs/firefox/patches/sandbox-fork.patch | 13 +++++++++++++ srcpkgs/firefox/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/firefox/patches/sandbox-fork.patch diff --git a/srcpkgs/firefox/patches/sandbox-fork.patch b/srcpkgs/firefox/patches/sandbox-fork.patch new file mode 100644 index 00000000000..72640cb7f70 --- /dev/null +++ b/srcpkgs/firefox/patches/sandbox-fork.patch @@ -0,0 +1,13 @@ +make SYS_fork non-fatal, musl uses it for fork(2) + +--- security/sandbox/linux/SandboxFilter.cpp ++++ security/sandbox/linux/SandboxFilter.cpp +@@ -1253,6 +1253,8 @@ + // usually do something reasonable on error. + case __NR_clone: + return ClonePolicy(Error(EPERM)); ++ case __NR_fork: ++ return Error(ENOSYS); + + # ifdef __NR_fadvise64 + case __NR_fadvise64: diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 801e503b3a4..24d71479b77 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -4,7 +4,7 @@ # pkgname=firefox version=75.0 -revision=1 +revision=2 build_helper="rust" short_desc="Mozilla Firefox web browser" maintainer="Johannes "