sandbox-fork.patch 424 B

12345678910111213141516
  1. make SYS_fork non-fatal, musl uses it for fork(2)
  2. --- a/security/sandbox/linux/SandboxFilter.cpp
  3. +++ b/security/sandbox/linux/SandboxFilter.cpp
  4. @@ -1253,6 +1253,10 @@
  5. // usually do something reasonable on error.
  6. case __NR_clone:
  7. return ClonePolicy(Error(EPERM));
  8. +#ifdef __NR_fork
  9. + case __NR_fork:
  10. + return Error(ENOSYS);
  11. +#endif
  12. # ifdef __NR_fadvise64
  13. case __NR_fadvise64: