Gentoo Archives: gentoo-user

From: Klaus Ethgen <Klaus+gentoo@××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] udev and ignoring rules
Date: Sun, 20 May 2018 16:07:43
Message-Id: 20180520160731.GB10427@ikki.ethgen.ch
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 Hi,
5
6 I found a strange problem with udev and, in this case, pcscd.
7
8 Installed versions:
9 [IP-] [ ] sys-apps/pcsc-lite-1.8.22:0
10 [IP-] [ ] sys-fs/eudev-3.2.5:0
11 [IP-] [ ] virtual/udev-217:0
12
13 - From /lib/udev/rules.d/99-pcscd-hotplug.rules, group should be set to
14 pcscd. However, if I plug the device it gets set to group usb.
15
16 That for its own is very strange as I found no error in the rule in that
17 file:
18 ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", RUN+="/bin/env IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start"
19
20 And adding some debug rules showed that ENV{PCSCD} is really set.
21
22 However, not the first fail with udev (bevore unrelated and on debian) I
23 tried:
24 ~> udevadm test /devices/pci0000:00/0000:00:1d.0/usb5/5-1
25 ...
26 Reading rules file: /lib64/udev/rules.d/92-pcsc-ccid.rules
27 Reading rules file: /lib64/udev/rules.d/95-dm-notify.rules
28 Reading rules file: /lib64/udev/rules.d/97-hid2hci.rules
29 Reading rules file: /lib64/udev/rules.d/99-fuse.rules
30 Reading rules file: /lib64/udev/rules.d/99-pcscd-hotplug.rules
31 ...
32 GROUP 85 /lib64/udev/rules.d/40-gentoo.rules:7
33 ...
34 GROUP 242 /lib64/udev/rules.d/99-pcscd-hotplug.rules:6
35 ...
36
37 After that the device has its correct group set to pcscd. So it seems to
38 be a kind of heisenbug[0], you see it as long as you don't watch on it.
39 :-(
40
41 Any Idea what can get wrong?
42
43 Beside the main problem I think the RUN setting is wrong. It just
44 produces log messages:
45 pcscd: not allowed to be hotplugged
46
47 I tried to find information on IN_HOTPLUG environment but there aren't
48 any. And pcscd is running as daemon as described in [1].
49
50 Regards
51 Klaus
52
53 [0]
54 [1] https://wiki.gentoo.org/wiki/PCSC-Lite
55 - --
56 Klaus Ethgen http://www.ethgen.ch/
57 pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@××××××.ch>
58 Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
59 -----BEGIN PGP SIGNATURE-----
60 Comment: Charset: ISO-8859-1
61
62 iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlsBnT0ACgkQpnwKsYAZ
63 9qzCcAwAuGP2YIw1lnMv6xYfIWsqmLDyMJ8pxfHqX/UW7VKtShplz9ef7JM5RUZv
64 GFRF02MCzo37+Q31oVkAKUC1L2ObRSP7IaCzXZSb7wSy/A6n892kGvicUeHoU5sK
65 sDtjdyxnTZ+f/o18Ox9gvE8HXLK/IveK2BOCMLBWeIZJXQeY6ZCZLfQkyMQdn1IC
66 hVAGPagTudddb5A4/tW6d8irHo2QFUbQOdr+t5F4ZdCT/5tEfvDvWvwO7cZ4qb+Y
67 B78m7nhE6EptnsV9o8za0+bfJ8BMVIVbFiJRyZ89xCeq1r7EyTC+DFHUHWl01xGz
68 U4j1fNioGl5oU/YN7Hxw8Zwf22OMqus1CdwuSWgbfJrpyT6k7+sUXgStgzynJP9z
69 5XUHll/Heceo55Mnq5m47v3eZVbcaZtH0+HEZfrWsFAFGgPWyr+rL6D3og4E3liJ
70 ssjvQpz7p3GAHBrinILM0WwofkKEhGTJhnJ4AqYw7WWyoVYiBAOhXu4BZimpeAn9
71 EotliQ0n
72 =GuJR
73 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] udev and ignoring rules Neil Bothwick <neil@××××××××××.uk>