I am trying to run a simple command line utiltity from within the shell of a sandboxed application. The application is signed and sandboxed and runs properly. I am signing the 'hello' binary using the following command, and then display the sandbox.entitlements for the program:
codesign -d --entitlements :- /Applications/Emacs\ Lisp\ Programming\ Environment\ \(ELPE\),1.0.18-dev.app/Contents/MacOS/hello
Executable=/Applications/Emacs Lisp Programming Environment (ELPE),1.0.18-dev.app/Contents/MacOS/hello
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
The apppplication is installed in /Applications, and the 'hello' program is owned by root:admin.
$ ls /Applications/Emacs\ Lisp\ Programming\ Environment\ \(ELPE\),1.0.18-dev.app/Contents/MacOS/ -l
total 25594
-rwxr-xr-x 1 root admin 18869504 2017-04-04 18:13 Emacs
drwxr-xr-x 2 root admin 68 2017-04-04 18:13 bin
-rwxr-xr-x 1 root admin 3723168 2017-04-04 18:13 fossil
-rwxr-xr-x 1 root admin 18464 2017-04-04 18:13 hello
drwxr-xr-x 2 root admin 68 2017-04-04 18:13 libexec
-rwxr-xr-x 1 root admin 1119840 2017-04-04 18:13 urbit
-rw-r--r-- 1 root admin 2476747 2017-04-04 18:13 urbit.pill
When run from the shell of the main application:
~ $ /Applications/Emacs\ Lisp\ Programming\ Environment\ \(ELPE\),1.0.18-dev.app/Contents/MacOS/hello
illegal instruction: 4
Any ideas on what I am doing incorrectly that I might need to do to get this command line application working from my sandboxed application?
Thanks in advance.