Running a C compiler from within an app sandbox

2014-06-16 Thread SevenBits
Does anyone know how to do this? Whenever I try to invoke the clang compiler from within my sandboxed application, I get an error message saying that the compiler cannot be used from within the sandbox. I have permission to access all of the necessary files, so Powerbox denying access to one of

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread Maxthon Chan
You are not allowed to run unsigned code from within the app sandbox. There are some way to circumvent this, but it will require you to call the compiler as a library. Look into lib clang any you will find out how to link clang into your app, and compile within your own program code. On Jun

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread SevenBits
On Jun 16, 2014, at 9:25 PM, Maxthon Chan xcvi...@me.com wrote: You are not allowed to run unsigned code from within the app sandbox. Are the command line developer tools not signed? One would think that they would be signed with Apple’s certificate… I have been able to execute other

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread Maxthon Chan
It is not the problem that they are not signed, but the problem that the fork(2) syscall is prevented from working in sandbox. Using the compiler as a library eliminated all the fork(2) calls. On Jun 17, 2014, at 9:33, SevenBits sevenbitst...@gmail.com wrote: On Jun 16, 2014, at 9:25 PM,