On 1/16/07, Ludovic Rousseau <[EMAIL PROTECTED]> wrote:
> 1. If you now integrate pcscd into udev, can you check out the option
> running pcscd as none root account?
I don't understand the problem.
Currently pcscd must run as root, right?
Maybe I miss something... Can I run pcscd using none root account?
You do not need to change anything in the driver.
"Serial hotplug" is supported since pcsc-lite 1.2.9-beta8 (6 sept 2005).
You just need to call "pcscd --hotplug" to ask pcscd to rescan the
readers configured in /etc/readers.conf
Oh...
So the problem is the following...
USB token (Embedded reader + card) cannot be implemented as pcsc-lite
USB bundle, since if they are, every time you insert them you get a
new reader, and everytime you remove them the reader is deleted.
This causes problems with PKCS#11 providers that fix the reader list
when C_Initialize is called.
The solution is to write such a driver as a serial driver, which is
always available as far as pcscd concerned.
But then it has to track on reader/token remove/insert by it-self...
Solutions:
1. Modify pcscd to be able to have persistence readers to bundle, for
example, you define:
USB-Token-01
USB-Token-02
USB-Token-03
Which are always available, and when a device is inserted you select a
free slot and allocate this to the bundle instance.
2. Allow a serial driver to be notified about hotplug event, so it may
rescan the bus.
The problem is how to know a serial reader has been connected or
removed. I have no answer except for the GemPC Card [1] which is a
PCMCIA reader but includes a GemPC Twin serial behind a PCMCIA/serial
bridge. And PCMCIA events are managed by udev.
Yes, I've seen this.
So you assume that you know the /dev/ttyXXXX in order to make it work.
This is not the case with USB tokens.
I do not know if udev supports a serial hotplug mechanism. I don't think so.
I guess now you understand why I am asking this... :)
Best Regards,
Alon Bar-Lev.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle