diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-07-18 14:09:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 14:09:54 +0200 |
commit | 2584c151bd1921035abd51cc31e29b3bf15d53cb (patch) | |
tree | f87a8dd06a536e7070d7f78b5ef2b5c82e76831f | |
parent | 59764eb842d0da4f6fcf4ce4b85bf02ac1ae26fc (diff) | |
parent | b88fb50e218cd3099cbceace48f7cfdf50a8f11f (diff) |
Merge pull request #6812 from lovesegfault/rosetta-paths
fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS
-rw-r--r-- | src/libstore/sandbox-defaults.sb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/sandbox-defaults.sb b/src/libstore/sandbox-defaults.sb index 56b35c3fe..d9d710559 100644 --- a/src/libstore/sandbox-defaults.sb +++ b/src/libstore/sandbox-defaults.sb @@ -98,7 +98,9 @@ (allow file* (literal "/private/var/select/sh")) -; Allow Rosetta 2 to run x86_64 binaries on aarch64-darwin. +; Allow Rosetta 2 to run x86_64 binaries on aarch64-darwin (and vice versa). (allow file-read* (subpath "/Library/Apple/usr/libexec/oah") - (subpath "/System/Library/Apple/usr/libexec/oah")) + (subpath "/System/Library/Apple/usr/libexec/oah") + (subpath "/System/Library/LaunchDaemons/com.apple.oahd.plist") + (subpath "/Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist")) |