@@ -58,7 +58,7 @@ endif | |||||
sandbox-run: $(TARGET) | sandbox-run: $(TARGET) | ||||
ifeq ($(ARCH), mac) | ifeq ($(ARCH), mac) | ||||
sandbox-exec -f ./Rack.sb `which sh` -c 'DYLD_FALLBACK_LIBRARY_PATH=dep/lib ./$<' 2 ↵ ✹ ✭sandbox ‹2.4.2› | |||||
sandbox-exec -D RACK_HOME=$(PWD) -f ./Rack.sb `which sh` -c 'DYLD_FALLBACK_LIBRARY_PATH=dep/lib ./$<' 2 ↵ ✹ ✭sandbox ‹2.4.2› | |||||
endif | endif | ||||
debug: $(TARGET) | debug: $(TARGET) | ||||
@@ -2,6 +2,8 @@ | |||||
(version 1) | (version 1) | ||||
(debug allow) | (debug allow) | ||||
(define rack-home "RACK_HOME") | |||||
; This is needed for IPC on OSX >= 10.6 | ; This is needed for IPC on OSX >= 10.6 | ||||
(allow ipc-posix-shm) | (allow ipc-posix-shm) | ||||
@@ -27,6 +29,8 @@ | |||||
(allow system-socket) | (allow system-socket) | ||||
(allow file-read* file-write* (subpath (param rack-home))) | |||||
; Allow file reading | ; Allow file reading | ||||
(allow file-read* | (allow file-read* | ||||
(regex | (regex | ||||