forked from ports/contrib
29 lines
961 B
Diff
29 lines
961 B
Diff
From 6d36ed9e971861321bb381e25516500069314eb6 Mon Sep 17 00:00:00 2001
|
|
From: Johannes <johannes.brechtmann@gmail.com>
|
|
Date: Fri, 1 May 2020 17:20:29 +0200
|
|
Subject: [PATCH 16/30] musl: make SYS_fork non-fatal, musl uses it for fork(2)
|
|
|
|
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
---
|
|
security/sandbox/linux/SandboxFilter.cpp | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
|
|
index eb72d944c8..8ce22d6f65 100644
|
|
--- a/security/sandbox/linux/SandboxFilter.cpp
|
|
+++ b/security/sandbox/linux/SandboxFilter.cpp
|
|
@@ -1537,6 +1537,10 @@ class ContentSandboxPolicy : public SandboxPolicyCommon {
|
|
// usually do something reasonable on error.
|
|
case __NR_clone:
|
|
return ClonePolicy(Error(EPERM));
|
|
+# ifdef __NR_fork
|
|
+ case __NR_fork:
|
|
+ return Error(ENOSYS);
|
|
+# endif
|
|
|
|
case __NR_clone3:
|
|
return Error(ENOSYS);
|
|
--
|
|
2.34.1
|
|
|