Skip to content

Instantly share code, notes, and snippets.

@inC3ASE
Created October 14, 2016 02:06
Show Gist options
  • Save inC3ASE/5e12b9f4647aac054a3c873adef821c7 to your computer and use it in GitHub Desktop.
Save inC3ASE/5e12b9f4647aac054a3c873adef821c7 to your computer and use it in GitHub Desktop.
usr/share/sandbox
;;; Copyright (c) 2012 Apple Inc. All rights reserved.
;;; Sandbox profile for webdav_agent.
(version 1)
(deny default)
(import "system.sb")
(import "gss-acceptor.sb")
(system-network)
(allow network-outbound)
(allow system-socket)
(allow mach-register
(global-name-regex #"^com\.apple\.webdavfs\.msgport..*"))
(allow file-read-metadata
(literal "/private/tmp"))
(allow mach-lookup
(global-name-regex #"^com\.apple\.webdavfs\.msgport..*"))
(allow mach-lookup
(global-name "com.apple.networkd"))
(allow file*
(regex #"^/private/tmp/.webdavUDS\..+"))
(allow file*
(regex #"^/private/tmp/\.webdavcache\..+"))
(allow file-read*
(regex #"^.*/Library/Preferences/com\.apple\.security\.plist"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment