Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why securityd does't launch pcscd



On Jul 1, 2008, at 6:58 PM, 王景民 wrote:

Hello to all:
I have write a usb smart card driver for pcscd,and when I run the pcscd from command line,it can catch my USB Smart card,but when I plugin my token ,the securityd does't lauch pcscd automaticity. Is there something I lost?

Your reader must be either of USB device class "smart card" (CCID) or of class "vendor defined". Securityd watches for both of those classes and launched pcscd if it detects either. (If pcscd does not recognize the reader, it won't post device-insertion notifications, and securityd will kill it again after a few minutes.)


I read the source code of securityd, find it have different mode of lauch pcscd,such as "conservative" "aggressive". So how can I change
this mode?

That's the -s argument to securityd. You can change it in securityd's startup script, in
/System/Library/LaunchDaemons/com.apple.securityd.plist.


In conservative mode, securityd does not respond to vendor-defined class devices (because those can be anything - that's the catch-all device class in USB, and many - particularly older - USB devices fall there). In aggressive mode, it does launch pcscd on those.

Another value useful for testing (but not deployment!) is "-s external", which keeps securityd from managing pcscd and instead tells it to use an already-running pcscd (that you presumably hand-started, perhaps under gdb). If that works fine, then it's likely that you're having auto-launch trouble of some kind.

Another (cheesy) work-around is to plug a CCID reader into the computer. That'll launch pcscd, and once it's running, it will scan for any other readers according to its own rules and procedures.

Cheers
  -- perry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >Why securityd does't launch pcscd (From: "王景民" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.