[PATCH 1/2] rules: split serial links

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

 



This splits the large serial links rule into:
- Local serial ports such as tty[A-Z]*[0-9]* and irDA links
- Bluetooth links
- Modem links

It also adds some explanation of why local serial ports and
bluetooth links are put into the "dialout" group.

Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
---
 rules/rules.d/50-udev-default.rules |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules
index f5b181d..7684ea9 100644
--- a/rules/rules.d/50-udev-default.rules
+++ b/rules/rules.d/50-udev-default.rules
@@ -7,8 +7,16 @@ KERNEL=="tty",			GROUP="tty", MODE="0666"
 KERNEL=="tty[0-9]*",		GROUP="tty", MODE="0620"
 KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
 
-# serial
-KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
+# external serial ports - these may or may not be connected to modems,
+# we assume they are connected to modems for security reasons
+KERNEL=="tty[A-Z]*[0-9]|ircomm[0-9]*", GROUP="dialout"
+
+# bluetooth TTY links - not always possible to use for dialout but we
+# assume so anyway for security reasons
+KERNEL=="rfcomm[0-9]*", GROUP="dialout"
+
+# modems
+KERNEL=="pppox[0-9]*|noz[0-9]*", GROUP="dialout"
 KERNEL=="mwave",		GROUP="dialout"
 KERNEL=="hvc*|hvsi*",		GROUP="dialout"
 
-- 
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