marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

udev rule is executed to early #286

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. copy 42-pn53x.rules to  /etc/udev/rules.d/ and reload rules
2. try to use nfc device as user (member of plugdev group)

What is the expected output? What do you see instead?
expected is to have access to device. 
device can not be accessed .

What version of the product are you using? On what operating system?
libnfc 1.7.1
debian 7.8

Please provide any additional information below.
udevadm test /sys/bus/usb/devices/....
"....
udev_rules_apply_to_event: GROUP 46 /etc/udev/rules.d/42-pn53x.rules:18
udev_rules_apply_to_event: MODE 0664 /etc/udev/rules.d/42-pn53x.rules:18
....
udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/91-permissions.rules:36
udev_rules_apply_to_event: GROUP 0 /lib/udev/rules.d/92-libccid.rules:19
...."

Solution:
Make sure that rule is executed after rule 92-libccid.rules by renaming it to 
93-pn53x.rules

Original issue reported on code.google.com by silver.k...@gmail.com on 25 Jan 2015 at 1:20