aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox/sandbox-fork.patch
blob: c7222ab494d7db45383b6ade7f2f37c4223e66c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
make SYS_fork non-fatal, musl uses it for fork(2)

--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -1253,6 +1253,10 @@
         // usually do something reasonable on error.
       case __NR_clone:
         return ClonePolicy(Error(EPERM));
+#ifdef __NR_fork
+      case __NR_fork:
+        return Error(ENOSYS);
+#endif
 
 #  ifdef __NR_fadvise64
       case __NR_fadvise64: