Skip to content

Instantly share code, notes, and snippets.

@chriskilding
Created April 16, 2016 11:21
Show Gist options
  • Save chriskilding/6e3a9302f519a777918e275993a0f1ae to your computer and use it in GitHub Desktop.
Save chriskilding/6e3a9302f519a777918e275993a0f1ae to your computer and use it in GitHub Desktop.
Vagrant runs afoul of the sandbox when run from an OSX app, even with temporary read-write access to "/"
To produce:
Run `vagrant global-status` somehow from inside an NSTask.
Stack trace:
/Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `open': Operation not permitted @ dir_initialize - / (Errno::EPERM)
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `entries'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `block in fs_real_path'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:162:in `each'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:162:in `fs_real_path'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:121:in `initialize'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:165:in `new'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:165:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment