summaryrefslogtreecommitdiff
path: root/sys-apps/file/files/file-5.39-portage_sandbox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/file/files/file-5.39-portage_sandbox.patch')
-rw-r--r--sys-apps/file/files/file-5.39-portage_sandbox.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/file/files/file-5.39-portage_sandbox.patch b/sys-apps/file/files/file-5.39-portage_sandbox.patch
new file mode 100644
index 000000000000..ff2caed413fc
--- /dev/null
+++ b/sys-apps/file/files/file-5.39-portage_sandbox.patch
@@ -0,0 +1,28 @@
+From 7e1d9d51329a0e0f3d9cd1dbc3f9509251950e81 Mon Sep 17 00:00:00 2001
+From: tka <tka@kamph.org>
+Date: Wed, 24 Jun 2020 11:18:45 +0200
+Subject: [PATCH] Allow getcwd for Gentoo's portage sandbox
+
+Gentoo-bug: https://bugs.gentoo.org/728978
+Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
+---
+ src/seccomp.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/seccomp.c b/src/seccomp.c
+index 68c56485..af55918e 100644
+--- a/src/seccomp.c
++++ b/src/seccomp.c
+@@ -227,6 +227,9 @@ enable_sandbox_full(void)
+ ALLOW_RULE(unlink);
+ ALLOW_RULE(write);
+
++ // needed by Gentoo's portage sandbox
++ ALLOW_RULE(getcwd);
++
+
+ #if 0
+ // needed by valgrind
+--
+2.27.0
+