From e0e0107e132f34a2d9c7befea174e166c62ff5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 22 May 2020 15:35:24 +0200 Subject: [PATCH] Fix bash process substitution by symlinking /dev/fd --- isolated-protonmail-bridge.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/isolated-protonmail-bridge.sh b/isolated-protonmail-bridge.sh index 689bb88..f455707 100755 --- a/isolated-protonmail-bridge.sh +++ b/isolated-protonmail-bridge.sh @@ -11,6 +11,7 @@ nsjail -Mo --cwd "${JAIL_HOME}" \ --tmpfsmount / \ --tmpfsmount /tmp --tmpfsmount /run \ + --symlink /proc/self/fd:/dev/fd \ --bindmount_ro "${HERE}/entrypoint.sh:${JAIL_HOME}/entrypoint.sh" \ --bindmount_ro "${HERE}/gpg-keygen-params.txt:${JAIL_HOME}/gpg-keygen-params.txt" \ --bindmount_ro /bin --bindmount_ro /sbin \