IOBluetoothHandsFree: deny iokit-set-properties AuthenticationAttempted

Originator:diederik
Number:rdar://13594736 Date Originated:07-Apr-2013 09:12 PM
Status:Open Resolved:
Product:Mac OS X Product Version:10.8.3
Classification:Serious Bug Reproducible:Yes
 
07-Apr-2013 09:12 PM Diederik Hoogenboom:
Summary:

We have a sandboxed app under development that uses the connect: method of IOBluetoothHandsFreeDevice to connect a handfree device. Without sandboxing this all works fine. 
Under sandboxing the following error is thrown in the console:

deny iokit-set-properties AuthenticationAttempted

And the connection fails.

Notes:

We have the following entitlements set for the app:
	<key>com.apple.security.app-sandbox</key>
	<true/>
	<key>com.apple.security.device.bluetooth</key>
	<true/>
	<key>com.apple.security.device.microphone</key>
	<true/>


Prior to 10.8.3 we did get more sandboxing exceptions for Bluetooth so things have definitely approved. 

Is there an entitlement that we are missing?

07-Apr-2013 11:18 PM Diederik Hoogenboom:
Stack trace:

0   libsystem_kernel.dylib        	0x00007fff90b42686 mach_msg_trap + 10
1   IOKit                         	0x00007fff8c5da00b io_registry_entry_set_properties + 117
2   IOKit                         	0x00007fff8c58feef IORegistryEntrySetCFProperties + 72
3   IOKit                         	0x00007fff8c58ff65 IORegistryEntrySetCFProperty + 89
4   IOBluetooth                   	0x00007fff90be0f25 -[IOBluetoothDevice instantiateChannel:findExisting:newChannel:] + 88
5   IOBluetooth                   	0x00007fff90be5f51 -[IOBluetoothL2CAPChannel instantiateOnDevice:] + 57
6   IOBluetooth                   	0x00007fff90bdfbc8 -[IOBluetoothDevice openL2CAPChannelAsync:withPSM:withConfiguration:delegate:] + 270
7   IOBluetooth                   	0x00007fff90be8c0a +[IOBluetoothRFCOMMConnection openOnDevice:doSyncronously:] + 229
8   IOBluetooth                   	0x00007fff90be84ea -[IOBluetoothRFCOMMChannel(IOBluetoothRFCOMMChannelPrivate) instantiateOnDevice:] + 31
9   IOBluetooth                   	0x00007fff90bdf238 -[IOBluetoothDevice openRFCOMMChannelAsync:withChannelID:delegate:] + 557
10  IOBluetooth                   	0x00007fff90c57149 -[IOBluetoothHandsFree openRFCOMMChannel] + 1442
11  IOBluetooth                   	0x00007fff90c5347b -[IOBluetoothHandsFree connect] + 1393
12  Dialogue                      	0x00000001008ce0e8 -[BluetoothController connectWithHandsfree] + 127 (BluetoothController.m:103)
13  Dialogue                      	0x00000001008ce044 -[BluetoothController bluetoothConnection:device:] + 312 (BluetoothController.m:94)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!