aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-06-10 20:51:33 +0200
committerJo-Philipp Wich <jo@mein.io>2017-06-26 10:02:20 +0200
commit124ab1dc0a6235007f60953a796bf29122dfa242 (patch)
treecc487015ed68e9b6d41b4efb791ec57457f63797 /package/system/procd/files
parent5523ee3459a2d346ad068ce359cdb60dcda1239d (diff)
downloadupstream-124ab1dc0a6235007f60953a796bf29122dfa242.tar.gz
upstream-124ab1dc0a6235007f60953a796bf29122dfa242.tar.bz2
upstream-124ab1dc0a6235007f60953a796bf29122dfa242.zip
procd: assign /dev/tty* nodes to "tty" group
Adjust default permissions and ownership of /dev/tty* nodes from 0600/root:root to 0660/root:tty in order to support granting unprivileged user access when needed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/hotplug.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index e5f8d967e8..168f9b83a8 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -21,6 +21,10 @@
[ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
],
[ "if",
+ [ "regex", "DEVNAME", "^tty" ],
+ [ "makedev", "/dev/%DEVNAME%", "0660", "tty" ],
+ ],
+ [ "if",
[ "has", "DEVNAME" ],
[ "makedev", "/dev/%DEVNAME%", "0600" ],
],