[PATCH] udev-acl: handle "dialout" devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As a simple user, I'm pretty tired of this, when using a
simple serial console for something:
$ minicom
Device /dev/ttyUSB0 access failed: Permission denied.

The device is indeed readable/writable by the group "dialout":
$ ls -al /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Jul 14 14:11 /dev/ttyUSB0

But that group is not maintained by anyone just installing Linux
for some simple desktop use. Just like we let udev-acl handle
media players, cameras and whatnot, let it handle modems, not to
mention the fact that these "dialouts" are often just some serial
link or irDA link, we don't really know if they are modems after
all.

Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
---
 extras/udev-acl/70-udev-acl.rules |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/extras/udev-acl/70-udev-acl.rules b/extras/udev-acl/70-udev-acl.rules
index 2dac283..770da3c 100644
--- a/extras/udev-acl/70-udev-acl.rules
+++ b/extras/udev-acl/70-udev-acl.rules
@@ -12,6 +12,9 @@ TEST=="/sys/fs/cgroup/systemd", TAG=="uaccess", GOTO="acl_end"
 # PTP/MTP protocol devices, cameras, portable media players
 SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="udev-acl"
 
+# USB-to-serial dongles, irDA links and other stuff classified as "dialout"
+GROUP=="dialout", TAG+="udev-acl"
+
 # digicams with proprietary protocol
 ENV{ID_GPHOTO2}=="*?", TAG+="udev-acl"
 
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux