How can I run a sandboxed OS X application without a sandbox?

I have an application that works using the sandbox. How can I run it without a sandbox? Suppose I can't just recompile a sandboxed application.

+5
source share
2 answers

It works:

$ ditto MySandboxedApp.app MySandboxedApp.backup.app
$ codesign -f -s- MySandboxedApp.app

Note the additional minus in "-s -".

+7
source

, - sandbox_init no-op. , gdb, sandbox_init . , sandbox_init DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=foo.dylib, foo.dylib int sandbox_init() { return 0; }.

, , , .

0

All Articles