[Bug 467255] New: /etc/init.d/pcscd mounts /proc/bus/usb
https://bugzilla.novell.com/show_bug.cgi?id=467255 Summary: /etc/init.d/pcscd mounts /proc/bus/usb Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: sbrabec@novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de Found By: Development /etc/init.d/pcscd mounts /proc/bus/usb which is deprecated and shouldn't be used. Use /dev/bus/usb instead (libusb does that automatically). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467255 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467255#c1 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED CC| |ludovic.rousseau@gmail.com --- Comment #1 from Stanislav Brabec <sbrabec@novell.com> 2009-01-21 09:41:43 MST --- Bug #146979 requested just reverse to make it working. Looking at the source code, it expects /proc/bus/usb during hotplug and instructs libusb to use /proc/bus/usb. usbprocfs is populated immediately by kernel, but /dev/bus/usb by udev. I am guessing, that udev hotplug rule was called too early and device node was not existing yet. udevd --debug now shows mknod pcscd --hotplug, so the problem seems to be away, at least for rules numbered 99 and unnumbered. Ludovic, can you confirm this iterpretation? I plan to remove setting of USB_DEVFS_PATH and revert the path to the default. Anyway, I want to move all these rules to HAL. (bug 438131) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467255 User ludovic.rousseau@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467255#c2 --- Comment #2 from Ludovic Rousseau <ludovic.rousseau@gmail.com> 2009-01-21 12:45:58 MST --- pcscd do not use the USB bus directly when compiled for libhal (default value). Using libusb and udev hotplug is now "deprecated". I used the "/proc/bus/usb" hack so that the udev event does not arrive too early. Comment from PCSC/src/hotplug_libusb.c /* libusb default is /dev/bus/usb but the devices are not yet visible there * when a hotplug is requested */ setenv("USB_DEVFS_PATH", "/proc/bus/usb", 0); Note: the CTAPI should really die now. Direct access to the reader from an application is not serious. The OpenCT framework should also die. But I am a bit biaised here :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467255 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467255#c3 --- Comment #3 from Stanislav Brabec <sbrabec@novell.com> 2009-01-22 06:33:49 MST --- OK. I'll remove the mount. You can remove the upper mentioned hack (and update documentation to not use udev helper numbers <51). Current versions of udev create the node before calling the udev hotplug helper (tested with helper with name starting with "99-" and without number). Device node is created in step "50". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467255 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467255#c4 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Stanislav Brabec <sbrabec@novell.com> 2009-03-23 07:05:13 MST --- It's already fixed by: Tue Feb 3 13:41:22 CET 2009 - sbrabec@suse.cz .. - Removed obsolete udev rules. - Install init script based on upstream one (bnc#467255). Not fixed for SLE11. It's an easy fix, so if there are any plans to get rid usbprocfs in SLE11 SP1, I can remove the line there as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com