Commit cc71329b authored by Scott James Remnant's avatar Scott James Remnant Committed by Greg Kroah-Hartman

USB: usbfs: deprecate and hide option for !embedded

Modern systems do not use usbfs; the entries within it are files,
not device nodes, and do not support ACLs which are the default way to
provide access to USB devices to untrusted users.

It is replaced by device-nodes maintained by udev in /dev/bus/usb,
libusb uses this device nodes.

Mark the option as deprecated, and hide entirely for non-embedded builds
(which may not be using udev but require raw USB device access).
Signed-off-by: default avatarScott James Remnant <scott@canonical.com>
Acked-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 91f8d063
...@@ -28,7 +28,7 @@ comment "Miscellaneous USB options" ...@@ -28,7 +28,7 @@ comment "Miscellaneous USB options"
depends on USB depends on USB
config USB_DEVICEFS config USB_DEVICEFS
bool "USB device filesystem" bool "USB device filesystem (DEPRECATED)" if EMBEDDED
depends on USB depends on USB
---help--- ---help---
If you say Y here (and to "/proc file system support" in the "File If you say Y here (and to "/proc file system support" in the "File
...@@ -46,11 +46,15 @@ config USB_DEVICEFS ...@@ -46,11 +46,15 @@ config USB_DEVICEFS
For the format of the various /proc/bus/usb/ files, please read For the format of the various /proc/bus/usb/ files, please read
<file:Documentation/usb/proc_usb_info.txt>. <file:Documentation/usb/proc_usb_info.txt>.
Usbfs files can't handle Access Control Lists (ACL), which are the Modern Linux systems do not use this.
default way to grant access to USB devices for untrusted users of a
desktop system. The usbfs functionality is replaced by real Usbfs entries are files and not character devices; usbfs can't
device-nodes managed by udev. These nodes live in /dev/bus/usb and handle Access Control Lists (ACL) which are the default way to
are used by libusb. grant access to USB devices for untrusted users of a desktop
system.
The usbfs functionality is replaced by real device-nodes managed by
udev. These nodes lived in /dev/bus/usb and are used by libusb.
config USB_DEVICE_CLASS config USB_DEVICE_CLASS
bool "USB device class-devices (DEPRECATED)" bool "USB device class-devices (DEPRECATED)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment