You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.1KB

  1. (version 1)
  2. (debug allow)
  3. (define rack-home "RACK_HOME")
  4. ; This is needed for IPC on OSX >= 10.6
  5. (allow ipc-posix-shm)
  6. ; Allow inbound and outbound connections
  7. (allow network-outbound)
  8. (allow network-inbound)
  9. ; Allow reading with sysctl
  10. (allow sysctl-read)
  11. ; Allow it to read metadata
  12. (allow file-read-metadata)
  13. ; Allow it to run processes and fork
  14. (allow process*)
  15. ; Allow it to signal self
  16. (allow signal)
  17. (allow iokit-open)
  18. (allow mach-lookup)
  19. (allow system-socket)
  20. (allow file-read* file-write* (subpath (param rack-home)))
  21. ; Allow file reading
  22. (allow file-read*
  23. (regex
  24. #"^/Applications/Rack.app"
  25. #"^/Library/*"
  26. #"^/System/Library/*"
  27. #"^/usr/*"
  28. #"^/dev/*"
  29. #"/Users/jon/Projects/Rack"
  30. #"/Users/[^.]+/Library/Saved Application State/com.vcvrack.rack.savedState"
  31. )
  32. )
  33. ; Allow write access to a subset of the above
  34. (allow file-write*
  35. (regex
  36. #"^/private/var/*"
  37. #"^/private/tmp/*"
  38. #"^/var/folders/th/*"
  39. )
  40. )
  41. (allow file-issue-extension
  42. (regex
  43. #"^/private/var/*"
  44. )
  45. )
  46. (deny default)