iMediaSandboxing / iMedia

The Karelia iMedia Browser, framework and application for browsing media on Mac OS X
http://www.karelia.com/imedia/
Other
18 stars 12 forks source link

User entitled directories must be propagated to the FSEvents XPC service #40

Closed jjac closed 12 years ago

jjac commented 12 years ago

To watch user entitled directories (library directories) the FSEvents XPC service must also be entitled. Otherwise the IMBFSEventsWatcher will produce messages in the console like

im.edia.FSEvents(4479) deny file-read-data /Users/joerg/Pictures Test/iPhoto 9.3 Test.photolibrary

Process: im.edia.FSEvents [4479] Path: /Users/joerg/Library/Developer/Xcode/DerivedData/iMedia-eziqmohtzkxjywecdgfphvntbmzs/Build/Products/Debug/iMediaTester.app/Contents/XPCServices/im.edia.FSEvents.xpc/Contents/MacOS/im.edia.FSEvents Load Address: 0x105042000 Identifier: im.edia.FSEvents Version: 3.0d1 (3.0d1) Code Type: x86_64 (Native) Parent Process: launchd [1]

Date/Time: 2012-10-24 15:41:48.137 +0200 OS Version: Mac OS X 10.8.2 (12C60) Report Version: 8

Thread 0: 0 libsystem_kernel.dylib 0x00007fff930b4fee open + 10 1 CarbonCore 0x00007fff896966cf _FSEventStreamCreate + 1001 2 CarbonCore 0x00007fff896962e0 FSEventStreamCreate + 107 3 iMedia 0x00000001050bb914 -[IMBFSEventsWatcher _registerFSEventsObserverForPath:] + 228 (UKFSEventsWatcher.m:225) 4 iMedia 0x00000001050bbc6b -[IMBFSEventsWatcher addPath:] + 155 (UKFSEventsWatcher.m:265) 5 im.edia.FSEvents 0x0000000105043a01 block_global_0 + 417 (IMBFSEventsService.m:131) 6 XPCKit 0x00000001051d37aa __35-[XPCConnection receiveConnection:]_block_invoke_0 + 410 (XPCConnection.m:126) 7 libxpc.dylib 0x00007fff8a3264a2 _xpc_connection_recv_message + 699 8 libxpc.dylib 0x00007fff8a32616d _xpc_connection_wakeup_recv + 165 9 libxpc.dylib 0x00007fff8a3248b4 _xpc_connection_wakeup2 + 1799 10 libxpc.dylib 0x00007fff8a32417c _xpc_connection_wakeup + 145 11 libdispatch.dylib 0x00007fff88ea00b6 _dispatch_client_callout + 8 12 libdispatch.dylib 0x00007fff88ea229b _dispatch_source_invoke + 691 13 libdispatch.dylib 0x00007fff88ea1305 _dispatch_queue_invoke + 72 14 libdispatch.dylib 0x00007fff88ea1448 _dispatch_queue_drain + 180 15 libdispatch.dylib 0x00007fff88ea12f1 _dispatch_queue_invoke + 52 16 libdispatch.dylib 0x00007fff88ea1448 _dispatch_queue_drain + 180 17 libdispatch.dylib 0x00007fff88ea12f1 _dispatch_queue_invoke + 52 18 libdispatch.dylib 0x00007fff88ea11c3 _dispatch_worker_thread2 + 249 19 libsystem_c.dylib 0x00007fff91121cab _pthread_wqthread + 404 20 libsystem_c.dylib 0x00007fff9110c171 start_wqthread + 13

jjac commented 12 years ago

Fixed with commit cdf536f.