[Pkg-phototools-devel] Bug#509293: libgphoto2-2: udev rules broken - use "usb_device" rather than "usb|usb_device"

Sarah Sharp saharabeara at gmail.com
Sat Dec 20 22:59:03 UTC 2008


Package: libgphoto2-2
Version: 2.4.1-3
Severity: important


Incorrect udev rules in the latest libgphoto2-2 package are not creating USB
device files in the plugdev group.  That means I can run gphoto2 as root, but
not as a normal user.

/etc/udev/rules.d/025_libgphoto2.rules includes this skip rule:

	SUBSYSTEM!="usb|usb_device", GOTO="libgphoto2_rules_end"

The pipe is not documented to work in the udev manpage, and I think this is the
problem.  When I change the line to:

	SUBSYSTEM!="usb_device", GOTO="libgphoto2_rules_end"

I can access the camera as a normal user.

I have CONFIG_USB_DEVICE_CLASS=y in my kernel config.  (I looked because of bug
427963.)  I did comment out the /etc/fstab rule to automatically mount usbdevfs
because I'm a USB developer and I need to be able to remove the USB core module.


gphoto2 info:

0.000222 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.002469 main(2): gphoto2 2.4.0
0.002518 main(2): gphoto2 has been compiled with the following options:
0.002549 main(2):  + gcc (C compiler used)
0.002629 main(2):  + popt (mandatory, for handling command-line parameters)
0.002659 main(2):  + exif (for displaying EXIF information)
0.002688 main(2):  + cdk (for accessing configuration options)
0.002716 main(2):  + no aa (for displaying live previews)
0.002744 main(2):  + jpeg (for displaying live previews in JPEG format)
0.002773 main(2):  + readline (for easy navigation in the shell)
0.002813 main(2): libgphoto2 2.4.1
0.002850 main(2): libgphoto2 has been compiled with the following options:
0.002880 main(2):  + gcc (C compiler used)
0.002908 main(2):  + ltdl (for portable loading of camlibs)
0.002936 main(2):  + EXIF (for special handling of EXIF files)
0.002969 main(2): libgphoto2_port 0.8.0
0.003004 main(2): libgphoto2_port has been compiled with the following options:
0.003034 main(2):  + gcc (C compiler used)
0.003062 main(2):  + ltdl (for portable loading of camlibs)
0.003091 main(2):  + USB (libusb, for USB cameras)
0.003118 main(2):  + serial (for serial cameras)
0.003146 main(2):  + no resmgr (serial port access and locking)
0.003175 main(2):  + no baudboy (serial port locking)
0.003203 main(2):  + no ttylock (serial port locking)
0.003231 main(2):  + no lockdev (serial port locking)
0.003260 main(2): CAMLIBS env var not set, using compile-time default instead
0.003288 main(2): IOLIBS env var not set, using compile-time default instead


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-wireless (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgphoto2-2 depends on:
ii  adduser                       3.100      Add and remove users and groups
ii  libc6                         2.7-4      GNU C Library: Shared libraries
ii  libexif12                     0.6.16-2.1 library to parse EXIF files
ii  libgphoto2-port0              2.4.1-3    gphoto2 digital camera port librar
ii  libjpeg62                     6b-14      The Independent JPEG Group's JPEG 
ii  libltdl3                      1.5.22-4   A system independent dlopen wrappe

Versions of packages libgphoto2-2 recommends:
ii  udev                          0.125-7    /dev/ and hotplug management daemo

-- no debconf information





More information about the Pkg-phototools-devel mailing list