Parental control and signed binaries

Discussion in 'Mac Programming' started by anandds, Apr 12, 2010.

  1. anandds macrumors newbie

    Joined:
    May 8, 2009
    #1
    Hi,

    I have a binary which we sign using our certificate during the build of our product. What I notice is that, when the parental control is enabled and this application is selected as one of the application allowed for the user to use it, the parental control daemon starts to crash.

    The signed binary will have a 3rd architecture which is unknown (representing the signing we do). Not sure if this is causing the problem.

    Below is the crashed thread:

    Thread 3 Crashed: Dispatch queue: com.apple.root.default-priority
    0 libSystem.B.dylib 0x00007fff81cf6d80 strlen + 16
    1 libstdc++.6.dylib 0x00007fff876394ae std::string::append(char const*) + 30
    2 com.apple.security 0x00007fff83028c8b Security::CodeSigning::MachORep::format() + 201
    3 com.apple.security 0x00007fff830234f6 Security::CodeSigning::SecStaticCode::signingInformation(unsigned int) + 348
    4 com.apple.security 0x00007fff8301afd5 SecCodeCopySigningInformation + 78
    5 ...le.framework.familycontrols 0x00007fff811d8198 FCCreateAppSignature + 197
    6 ...le.framework.familycontrols 0x00007fff811d5632 -[FCApp initWithPath:addingSubApps:creatingSignature:detached:] + 2627
    7 ...le.framework.familycontrols 0x00007fff811d4380 +[FCApp appWithPath:addingSubApps:creatingSignature:detached:] + 86
    8 ...le.framework.familycontrols 0x00007fff811d5493 -[FCApp initWithPath:addingSubApps:creatingSignature:detached:] + 2212
    9 ...le.framework.familycontrols 0x00007fff811d4380 +[FCApp appWithPath:addingSubApps:creatingSignature:detached:] + 86
    10 parentalcontrolsd 0x0000000100021222 0x100000000 + 135714
    11 parentalcontrolsd 0x0000000100021950 0x100000000 + 137552
    12 parentalcontrolsd 0x0000000100020d51 0x100000000 + 134481
    13 com.apple.Foundation 0x00007fff871f311a -[__NSOperationInternal start] + 673
    14 com.apple.Foundation 0x00007fff871f2dd8 ____startOperations_block_invoke_2 + 99
    15 libSystem.B.dylib 0x00007fff81d2fdc7 _dispatch_call_block_and_release + 15
    16 libSystem.B.dylib 0x00007fff81d0e341 _dispatch_worker_thread2 + 231
    17 libSystem.B.dylib 0x00007fff81d0dc80 _pthread_wqthread + 353
    18 libSystem.B.dylib 0x00007fff81d0db1d start_wqthread + 13


    Any ideas?

    Thanks,
    Anand
     
  2. anandds thread starter macrumors newbie

    Joined:
    May 8, 2009
    #2
    Looks like the crash happens when codesigning is done on the app. When I tried 'codesign -d myapp.app', even this crashed and I got the same stack trace as in the parental control daemon.
     

Share This Page