Mac Sandbox entitlement for Asus Xtion : Failed to open the file

241 views Asked by At

I am developing a Mac application that uses an Asus Xtion Pro Live camera. I activate Sandboxing and set the com.apple.security.device.usb entitlement to YES.

After doing so, the app is not able to detect the camera anymore.

Could not open "1d27/0601@253/5": Failed to open the file!

Does anyone know how to set an entitlement to enable detection of the Asus Xtion Pro Live?

Thanks!

2

There are 2 answers

0
mahal tertin On

what about com.apple.security.device.camera? All available entitlement in the reference.

0
user3092324 On

The above problem was solved adding an entitlement:

com.apple.security.temporary-exception.files.absolute-path.read-write 

for the file (found using the mac console):

/private/tmp/XnCore.Mutex.HostProtocolMutex1d27_0601@250_6.key

The problem now is that Mac Sandboxing does not allow IPC System V Semaphores.

27/06/14 12:17:50,000 kernel[0]: Sandbox: MyApp(69513) deny ipc-sysv-sem

Does anyone know how to use IPC System V Semaphores in Mac Sandboxed apps?

Thanks!