Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Bug#412149: general: "usb:" stopped working in both gpsbabel and jpilot

0 views
Skip to first unread message

Reid Priedhorsky

unread,
Feb 25, 2007, 8:00:09 PM2/25/07
to
Steve Langasek wrote:
> On Fri, Feb 23, 2007 at 06:27:01PM -0600, Reid Priedhorsky wrote:
>> The following are the packages I upgraded between working and non-working USB:
>
> <snip>
>
>> 2007-02-20 21:36:47 status installed libgphoto2-port0 2.2.1-16
>> 2007-02-20 21:36:50 status installed libgphoto2-2 2.2.1-16
>
> <snip>
>
>> I'm not sure for which package this bug report is appropriate. libusb seems a
>> likely candidate, but I haven't upgraded that package since October and
>> haven't touched the configuration in a while.
>
> This latest libgphoto update fixed a security hole whereby libgphoto's udev
> rules would wrongly grant access to the plugdev group on all usb devices
> instead of just those related to cameras. An interesting possibility here
> is that your use of libusb depended on libgphoto's bug. :)
>
> This was bug #405006. A comment from this bug log:
>
> > What class of USB devices are ending up under group plugdev that
> > shouldn't?
>
> It concerns the raw USB devices, in /dev/bus/usb/, used by libusb for
> userland drivers.
>
> So I would say this isn't a bug at all, but that you need to set up
> additional permissions on /dev/bus/usb/* for your use.

Hi Steve,

(CC'ed to debian-user to help others with similar problems.)

Indeed. It took me a little while to figure out enough about udev to
hack in a working config. What I ended up doing was restoring
libgphoto2's buggy behavior ;) -- indeed problematic in the general
case, but fine for my 1-user system. I edited /etc/udev/udev.rules as
below and now everything works again.

Thanks for your quick and helpful reply! It was very much appreciated.

Reid


--- /etc/udev/udev.rules~ 2006-11-26 17:22:36.000000000 -0600
+++ /etc/udev/udev.rules 2007-02-24 17:18:08.000000000 -0600
@@ -34,7 +34,7 @@

# usbfs-like devices
SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'",
ACTION=="add", \
- NAME="%c"
+ NAME="%c", GROUP="plugdev"

# serial devices
KERNEL=="capi", NAME="capi20",
SYMLINK+="isdn/capi20"


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

0 new messages