Devtools for vim/macvim
This is a syntax file for the vim editor which will make it understand and print apples sandbox files in pretty colors. The syntax file can be downloaded here: sbpl.vim
installation of vim syntax files:
Installation is simple, but easy to forget. Download the file, place it in ~/.vim/syntax/. You alsow need to specify for vim how it should detect the filetype. Here is a simple one that will make it assume that *.sb files are sandbox files:
Edit ~/.vimrc and add the following:
au FileType '*' exe('setl dict+='~/.vim/syntax/'.&filetype.'.sbpl)
Other stuff that uses the apple sandbox
There are some other people/projects that utilizes the sandbox. Most known is probably google chrome, but here are some pointers for those that want examples / inspiration / cut & paste friendly code or whatever.
- Robert tomsicks sandbox for safari. (deprecated?)
- Chromium/Chrome sources. Have several sandbox files in the source tree.
- Gentoo guys uses it for portage apparently.
MacOSX paths where sandbox profiles may be found
- /usr/share/sandbox
- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/default.sb
- /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/default.sb
- /System/Library/PrivateFrameworks/WebContentAnalysis.framework/Versions/A/Resources/webfilterproxyd.sb
- /System/Library/Sandbox/Profiles/sandboxd.sb
- /System/Library/Sandbox/Profiles/system.sb
LaunchDaemons that uses the sandbox
These are the launch daemons from osx 10.6 that uses the sandbox. Note that some of these may still utillize the sandbox by using sandbox_init
- /System/Library/LaunchDaemons/com.apple.cvmsServ.plist
- /System/Library/LaunchDaemons/com.apple.portmap.plist
- /System/Library/LaunchDaemons/com.apple.syslogd.plist
- /System/Library/LaunchDaemons/org.isc.named.plist - Added to the plist but not enabled