Sandbox Violation on Runtime Exec
Jessica Finley
jfinley at tech4learning.com
Fri Jun 8 07:35:44 PDT 2012
> you're right, you can't at runtime.
> You would have to create a new executable with its own
> entitlements...I guess JNI may be an easier solution at this point.
>
Alrighty, then. Looks like JNI is the way to go.
> BTW, it seems Runtime.exec() uses fork() on OSX so AFAIK it may never
> work in a sandbox.
> The reason why NSTask works is probably because internally it uses posix_spawn.
>
I was wondering if this was the case. Thank you for your time and insight!
-Jess
More information about the macosx-port-dev
mailing list