linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udev-acl: handle "dialout" devices
@ 2011-07-14 12:23 Linus Walleij
  2011-07-14 12:27 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Linus Walleij @ 2011-07-14 12:23 UTC (permalink / raw)
  To: linux-hotplug

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@linaro.org>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-14 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-14 12:23 [PATCH] udev-acl: handle "dialout" devices Linus Walleij
2011-07-14 12:27 ` Kay Sievers
2011-07-14 16:42 ` Linus Walleij
2011-07-14 16:44 ` Marco d'Itri
2011-07-14 17:23 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).