Package: udev Version: 0.140-2 Hi udev maintainers,
when investigating the reasons for bug #524665 I discovered a discrepancy between the udev man page and what apparently happens on Joachim's system. The udev man page says in section "Rules files": "The udev rules are read from the files located in the default rules directory /lib/udev/rules.d/, the custom rules directory /etc/udev/rules.d/ and the temporary rules directory /dev/.udev/rules.d/. All rule files are sorted and processed in lexical order, regardless in which of these directories they live." In opposite to this Joachim experienced something different: The rules in /lib/udev/rules.d/91-permissions.rules get applied after the rules in /etc/udev/rules.d/z60_libchipcard-tools.rules. So the rules from z60_libchipcard-tools.rules get overwritten by those from 91-permessions.rules even though "91-..." comes before "z60_..." in lexical order. Is this a bug in udev or did Joachim observe some weird special cases (i.e. caused by a race condition)? I definitely need your help. What do you suggest in order to fix the bug? Regards Micha ----- Forwarded message from Joachim Breitner <nome...@debian.org> ----- Subject: Bug#524665: udev group setting does not work From: Joachim Breitner <nome...@debian.org> To: Debian Bug Tracking System <sub...@bugs.debian.org> Date: Sat, 18 Apr 2009 23:13:23 +0200 Package: libchipcard-tools Version: 4.2.7-2 Severity: important File: /etc/udev/rules.d/z60_libchipcard-tools.rules -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Micha, for a while (probably since some udev upgrade), the file /dev/bus/usb/003/006 (numbers vary, of course) do not have the proper chipcard group setting any more. I have attached a udev log with priority=info that shows what happens when pluggin in my card reader. The settings from /etc/udev/rules.d/z60_libchipcard-tools.rules do get applied, but are later overridden by a line in /lib/udev/rules.d/91-permissions.rules: SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ MODE="0664" Which, as it seems, also resets the group. I assume that you need to change your udev rule number, or move it to /lib or something. I guess you should consult the udev maintainers for that. Greetings, Joachim - -- Package-specific info: Available chipcard readers (output of "chipcard-tool list"): - -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libchipcard-tools depends on: ii adduser 3.110 add and remove users and groups ii libc6 2.9-7 GNU C Library: Shared libraries ii libchipcard- 4.2.7-2 configuration files for libchipcar ii libchipcardc 4.2.7-2 library for accessing smartcards ii libdbus-1-3 1.2.12-1 simple interprocess messaging syst ii libgcc1 1:4.3.3-8 GCC support library ii libgwenhywfa 3.8.0-1 OS abstraction layer ii libhal1 0.5.12~git20090406.46dc48-1 Hardware Abstraction Layer - share ii libpcsclite1 1.5.2-2 Middleware to access a smart card ii libstdc++6 4.3.3-8 The GNU Standard C++ Library v3 ii procps 1:3.2.7-11 /proc file system utilities ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime Versions of packages libchipcard-tools recommends: ii hal 0.5.12~git20090406.46dc48-1 Hardware Abstraction Layer Versions of packages libchipcard-tools suggests: ii libccid 1.3.10-1 PC/SC driver for USB CCID smart ca pn libtowitoko2 <none> (no description available) - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknqQnMACgkQ9ijrk0dDIGx+fgCfa5jkz/vnlSFf3EO+1SEceT9u //MAnjxUXm9wDnoj1yE5TUlluZ3imTY3 =K5/l -----END PGP SIGNATURE----- ----- End forwarded message ----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org