aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-15 09:11:26 +0200
committerGitHub <noreply@github.com>2021-09-15 09:11:26 +0200
commitd2c8eed34496b650935e4563ffe3174978bd22fc (patch)
tree849af0673ef414397e6aa101180c5a4a2a470ee8 /src
parentfda4efff873730f0065cf35f0bc5b36983d675c7 (diff)
parent56025ad3b1c6925ab53a17242d2b9c008015ec6a (diff)
Merge pull request #5251 from emilazy/darwin-sandbox-rosetta-2
sandbox: allow Rosetta 2 on Darwin
Diffstat (limited to 'src')
-rw-r--r--src/libstore/sandbox-defaults.sb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/sandbox-defaults.sb b/src/libstore/sandbox-defaults.sb
index 2bb1ea130..41893e6dd 100644
--- a/src/libstore/sandbox-defaults.sb
+++ b/src/libstore/sandbox-defaults.sb
@@ -97,3 +97,7 @@
; This is used by /bin/sh on macOS 10.15 and later.
(allow file*
(literal "/private/var/select/sh"))
+
+; Allow Rosetta 2 to run x86_64 binaries on aarch64-darwin.
+(allow file-read*
+ (subpath "/Library/Apple/usr/libexec/oah"))