Sandbox Violation on Runtime Exec
Marco Dinacci
marco.dinacci at gmail.com
Fri Jun 8 03:11:18 PDT 2012
Hi,
> Can anyone explain why that would be? And perhaps, what can I do differently in my java app to call this command (we're currently using Runtime.exec()) and not get pulled over by the sandbox police?
my guess is that it is blocked because Runtime.exec() executes the
command in a separate process, which doesn't inherit the sandbox
entitlements of his parent.
You could try either using the com.apple.security.inherit entitlement
or create a small tool as an XPC service.
As you say that NSTask works you could also make a dylib and wrap it using JNI.
Best,
Marco
More information about the macosx-port-dev
mailing list