Bug 2575

Summary: mounting usbfs still ignores devmode permissions
Product: Drivers Reporter: monty
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: REJECTED DUPLICATE    
Severity: normal CC: monty
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.5 Subsystem:
Regression: --- Bisected commit-id:

Description monty 2004-04-22 22:37:23 UTC
devmode in fstab is being completely ignored by usbfs on 2.6.5 meaning
user-attached devices can only be accessed by root.

debian:~# uname -a
Linux debian 2.6.5 #1 SMP Mon Apr 5 18:15:37 BST 2004 i686 unknown

debian:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options>                  <dump> <pass>
/dev/sda1       /             ext3   defaults,errors=remount-ro 0      1
proc            /proc         proc   defaults                   0      0
none            /proc/bus/usb usbfs  defaults,devmode=0666      0      0

debian:~# ls -al /proc/bus/usb/002/002
-rw-r--r--    1 root     root           43 Apr 23 04:22 /proc/bus/usb/002/002

2.4 is not exhibiting the problem.  Output from a 2.4 machine is as expected:

snotfish# ls -al /proc/bus/usb/002/002 
-rw-rw-rw-    1 root     root           18 Apr 23 01:14 /proc/bus/usb/002/002

Monty
Comment 1 Greg Kroah-Hartman 2004-04-22 22:42:54 UTC

*** This bug has been marked as a duplicate of 1418 ***