Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150223 - default udev usb rules for /dev/bus/usb should add write perms for usb group
Summary: default udev usb rules for /dev/bus/usb should add write perms for usb group
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 150422 155810 162861 (view as bug list)
Depends on:
Blocks: udev-meta 131756
  Show dependency tree
 
Reported: 2006-10-05 18:58 UTC by SpanKY
Modified: 2007-01-26 15:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
udev.rules-usb-fix.patch (udev.rules-usb-fix.patch,1007 bytes, patch)
2006-11-13 02:12 UTC, Robin Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-10-05 18:58:22 UTC
follow up to Bug 131756 ...

the default mount perms for /proc/bus/usb is 0664 and usb group access ... perhaps the udev rule:
SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf
bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"

should really read MODE="0664" and add GROUP="usb"
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-10-05 22:45:21 UTC
Should we be setting it to group "usb"?   I didn't even know we had such a group...  wow, never knew that...

Anyway, what would this help here?  I thought the sane and gphoto udev rules were handling things properly now.
Comment 2 SpanKY gentoo-dev 2006-10-06 08:59:34 UTC
it would allow for people to access all usb devices by being in the usb group ... that way we wouldnt need every single usb package out there to install custom udev rules to get around the problem
Comment 3 SpanKY gentoo-dev 2006-10-07 17:32:04 UTC
*** Bug 150422 has been marked as a duplicate of this bug. ***
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-13 02:12:57 UTC
Created attachment 101814 [details, diff]
udev.rules-usb-fix.patch

*bump*
gregkh: this bug is holding up stabilization of everything that depends on the new version of libusb.

I've attached a patch with the exact change for Gentoo. If you don't have time to apply it yourself, just ACK here, and I'll get it in the tree.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-11-13 09:26:24 UTC
Which version of udev do you wish for me to bump for this?  The stable version, or the latest unstable one?

Hm, I think it's about time I marked the latest unstable as stable anyway, unless this would cause a problem for libusb?
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-13 14:30:30 UTC
I was just changing the files/udev.rules-098 directly, since that is used for all of the recent ebuilds. Better practice would be moving the change to a files/udev.rules-103, but either way, I see no problem with putting this change straight to stable.

Putting it in stable is more useful since libusb and the other apps are going stable shortly after this patch is in the tree.
Comment 7 Jory A. Pratt 2007-01-07 15:21:10 UTC
Is anyone still on top of this?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-01-15 11:00:33 UTC
*** Bug 155810 has been marked as a duplicate of this bug. ***
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2007-01-15 17:19:55 UTC
(In reply to comment #8)
> *** Bug 155810 has been marked as a duplicate of this bug. ***
> 

Well those are different devices nodes /dev/usb/hiddevN but if they get fixed in this bug then I am fine with the duplicate.
Comment 10 Matthias Schwarzott gentoo-dev 2007-01-19 15:38:18 UTC
Added this rule to udev-104.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 01:02:54 UTC
*** Bug 162861 has been marked as a duplicate of this bug. ***