Skip to content

Commit

Permalink
fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS
Browse files Browse the repository at this point in the history
Fixes: #5884
  • Loading branch information
centromere authored and lovesegfault committed Jul 15, 2022
1 parent 59764eb commit b88fb50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstore/sandbox-defaults.sb
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit b88fb50

Please sign in to comment.