-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I found a strange problem with udev and, in this case, pcscd.

Installed versions:
   [IP-] [  ] sys-apps/pcsc-lite-1.8.22:0
   [IP-] [  ] sys-fs/eudev-3.2.5:0
   [IP-] [  ] virtual/udev-217:0

- From /lib/udev/rules.d/99-pcscd-hotplug.rules, group should be set to
pcscd. However, if I plug the device it gets set to group usb.

That for its own is very strange as I found no error in the rule in that
file:
   ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", RUN+="/bin/env IN_HOTPLUG=1 
/etc/init.d/pcscd --quiet start"

And adding some debug rules showed that ENV{PCSCD} is really set.

However, not the first fail with udev (bevore unrelated and on debian) I
tried:
   ~> udevadm test /devices/pci0000:00/0000:00:1d.0/usb5/5-1
   ...
   Reading rules file: /lib64/udev/rules.d/92-pcsc-ccid.rules
   Reading rules file: /lib64/udev/rules.d/95-dm-notify.rules
   Reading rules file: /lib64/udev/rules.d/97-hid2hci.rules
   Reading rules file: /lib64/udev/rules.d/99-fuse.rules
   Reading rules file: /lib64/udev/rules.d/99-pcscd-hotplug.rules
   ...
   GROUP 85 /lib64/udev/rules.d/40-gentoo.rules:7
   ...
   GROUP 242 /lib64/udev/rules.d/99-pcscd-hotplug.rules:6
   ...

After that the device has its correct group set to pcscd. So it seems to
be a kind of heisenbug[0], you see it as long as you don't watch on it.
:-(

Any Idea what can get wrong?

Beside the main problem I think the RUN setting is wrong. It just
produces log messages:
   pcscd: not allowed to be hotplugged

I tried to find information on IN_HOTPLUG environment but there aren't
any. And pcscd is running as daemon as described in [1].

Regards
   Klaus

[0]
[1] https://wiki.gentoo.org/wiki/PCSC-Lite
- -- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <kl...@ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlsBnT0ACgkQpnwKsYAZ
9qzCcAwAuGP2YIw1lnMv6xYfIWsqmLDyMJ8pxfHqX/UW7VKtShplz9ef7JM5RUZv
GFRF02MCzo37+Q31oVkAKUC1L2ObRSP7IaCzXZSb7wSy/A6n892kGvicUeHoU5sK
sDtjdyxnTZ+f/o18Ox9gvE8HXLK/IveK2BOCMLBWeIZJXQeY6ZCZLfQkyMQdn1IC
hVAGPagTudddb5A4/tW6d8irHo2QFUbQOdr+t5F4ZdCT/5tEfvDvWvwO7cZ4qb+Y
B78m7nhE6EptnsV9o8za0+bfJ8BMVIVbFiJRyZ89xCeq1r7EyTC+DFHUHWl01xGz
U4j1fNioGl5oU/YN7Hxw8Zwf22OMqus1CdwuSWgbfJrpyT6k7+sUXgStgzynJP9z
5XUHll/Heceo55Mnq5m47v3eZVbcaZtH0+HEZfrWsFAFGgPWyr+rL6D3og4E3liJ
ssjvQpz7p3GAHBrinILM0WwofkKEhGTJhnJ4AqYw7WWyoVYiBAOhXu4BZimpeAn9
EotliQ0n
=GuJR
-----END PGP SIGNATURE-----

Reply via email to