Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346459 - sys-apps/openrc: init.d/procfs: dont mount usbfs by default
Summary: sys-apps/openrc: init.d/procfs: dont mount usbfs by default
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-22 19:54 UTC by App Deb
Modified: 2010-12-03 12:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description App Deb 2010-11-22 19:54:02 UTC
The usbfs virtual file system has been deprecated for a long time now (The udev /dev/bus/usb entries are used instead) and many other (most) distributions already don't mount it by default.

The presence of the usbfs file system actually creates some problems:

Example: the virtualbox-bin package, installs a udev rule in:
/etc/udev/rules.d/10-virtualbox.rules

And this is supposed to give USB access to users belonging to the group "vboxusers".

However, because VirtualBox detects the presence of the deprecated usbfs file system, it uses this instead thinking this is a "legacy" system, and the udev rule gets ignored.

The udev rule (when not using usbfs) has the advantage that it can be overridden (eg. add an extra permission rule for a specific usb printer, so that no "vboxusers" can touch that specific device, but can work with the other ones).

The current gentoo "usb" group that affects usbfs gives access to everything USB with no exceptions and it is hard to control.

I think usbfs should be disabled by default, and an on/off entry should be added to a baselayout/openrc config file for those that still need it.

In case usbfs is going to be removed completely, the "usb" group also has to go.

Reproducible: Always

Steps to Reproduce:
- Unmount usbfs file system manually
Actual Results:  
- Everything still works.

Expected Results:  
- Something shouldn't work
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-12-03 10:21:47 UTC
I am not sure what you're proposing here so I am assigning this to those who I think is more qualified to deal with this
Comment 2 SpanKY gentoo-dev 2010-12-03 12:14:30 UTC
seems like it'd make more sense to have vbox default to /dev/bus/usb instead of /proc/bus/usb which means you should file a bug with the upstream vbox devs

if you dont want usbfs automounted, then stop enabling it in your kernel.