[cups-devel] Yosemite Sandboxing issue for command filter
Ayyapu Reddy Pallam
ayyapu.reddy.pallam at celstream.com
Wed Aug 13 05:16:41 PDT 2014
Hi,
My printer driver has a command filter which queries info from printer over http. It’s working fine on 10.9 but not on OS 10.10 (tried with latest DP5)
On 10.10 it shows below messages in console:
“tcp_connection_destination_prepare_complete 1 connectx to <MyProxyIP>:8080 at 0 failed: Operation not permitted"
"Failed to obtain sandbox extension for path=/var/spool/cups/Library/Caches/com.xxx.commandtobd. Errno:2”
“Sandbox: commandtobd(777) deny network-outbound *:8080"
If I try enabling sandbox and adding com.apple.security.network.client entitlement the command filter crashes, below is the report. Please let me know the if there are any specific changes need to be made for command filter to work on OS 10.10. Thanks.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Application Specific Information:
Sandbox creation failed: AppSandboxUtilRealPathForPath(self.userAccountHomeDirectoryPath) failed: The operation couldn’t be completed. Permission denied
Application Specific Signatures:
AppSandboxUtilRealPathForPath(self.userAccountHomeDirectoryPath) failed: The operation couldn?t be completed. Permission denied
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libxpc.dylib 0x00007fff9090b5bf _xpc_runtime_init_once + 2320
1 libdispatch.dylib 0x00007fff8844b28d _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fff8844b1fc dispatch_once_f + 79
3 libxpc.dylib 0x00007fff90908614 _xpc_runtime_set_domain + 201
4 libxpc.dylib 0x00007fff90907d19 _libxpc_initializer + 425
5 libSystem.B.dylib 0x00007fff8c16caa8 libSystem_initializer + 142
6 dyld 0x00007fff60e64c2e ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 268
7 dyld 0x00007fff60e64dba ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
8 dyld 0x00007fff60e61a62 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 308
9 dyld 0x00007fff60e619eb ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
10 dyld 0x00007fff60e619eb ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
11 dyld 0x00007fff60e619eb ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
12 dyld 0x00007fff60e619eb ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
13 dyld 0x00007fff60e619eb ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
14 dyld 0x00007fff60e618f6 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 54
15 dyld 0x00007fff60e551da dyld::initializeMainExecutable() + 189
16 dyld 0x00007fff60e58560 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2419
17 dyld 0x00007fff60e5427b dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 477
18 dyld 0x00007fff60e5405e _dyld_start + 54
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000000000009a rbx: 0x00007fff594e6e10 rcx: 0x8a008d75d62ef843 rdx: 0x00007fff594e6768
rdi: 0x0000000000000000 rsi: 0x00007fd5fa40c0a7 rbp: 0x00007fff594e7a90 rsp: 0x00007fff594e6db0
r8: 0x00007fff90926096 r9: 0x00007fff9010c8d0 r10: 0x00007fff900d12a8 r11: 0x000000295f0dadc9
r12: 0x00007fd5fa40c060 r13: 0x0000000000000011 r14: 0x00007fd5fa40c140 r15: 0x0000000106790010
rip: 0x00007fff9090b5bf rfl: 0x0000000000010202 cr2: 0x00007fd5fa40c000
Regards,
Ayyapu
-----------------------------------------------------------------------------------------------------------------------------
DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Private Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or administrator at celstream.com immediately.
-----------------------------------------------------------------------------------------------------------------------------
More information about the cups-devel
mailing list