Skip to content

Instantly share code, notes, and snippets.

@azinman
Created February 25, 2016 02:56
Show Gist options
  • Save azinman/8271381d8aec271e51f0 to your computer and use it in GitHub Desktop.
Save azinman/8271381d8aec271e51f0 to your computer and use it in GitHub Desktop.
Example jail for vanadium jenkins tests
(version 1)
(deny default)
(allow network*)
(allow file-write* file-read-data file-read-metadata
(regex "^/Users/zinman/vanadium")
(regex "^(/private)?/tmp"))
(allow file-read-data file-read-metadata
(regex "^/dev/autofs.*")
(regex "^/Library/Preferences")
(regex "^/Library/Internet Plug-Ins")
(regex "^/Library/PreferencePanes")
(regex "^/usr/share/icu")
(regex "^/usr/share/locale")
(regex "^/System/Library")
(regex "^/Applications/Xcode.app")
(regex "^/usr/bin")
(regex "^/usr/lib")
(regex "^/var"))
(allow mach* sysctl-read)
(allow signal (target same-sandbox))
(allow process-fork)
(allow process-exec
(regex "^/bin")
(regex "^/usr/bin")
(regex "^(/private?)/tmp")
(regex "^/Users/zinman/vanadium")
(regex "^/Applications/Xcode.app"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment