Browse Source

Sandbox path to Rack passed in to sandbox-exec

pull/638/head
Jon Williams 6 years ago
parent
commit
c26b909c1c
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +4
    -0
      Rack.sb

+ 1
- 1
Makefile View File

@@ -58,7 +58,7 @@ endif

sandbox-run: $(TARGET)
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

debug: $(TARGET)


+ 4
- 0
Rack.sb View File

@@ -2,6 +2,8 @@
(version 1)
(debug allow)

(define rack-home "RACK_HOME")

; This is needed for IPC on OSX >= 10.6
(allow ipc-posix-shm)

@@ -27,6 +29,8 @@

(allow system-socket)

(allow file-read* file-write* (subpath (param rack-home)))

; Allow file reading
(allow file-read*
(regex


Loading…
Cancel
Save