fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS

Fixes: #5884
This commit is contained in:
Alex Wied 2022-07-06 11:28:23 -04:00 committed by Bernardo Meurer
parent 59764eb842
commit b88fb50e21

View file

@ -98,7 +98,9 @@
(allow file* (allow file*
(literal "/private/var/select/sh")) (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* (allow file-read*
(subpath "/Library/Apple/usr/libexec/oah") (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"))