[source] procd: assign /dev/tty* nodes to "tty" group

LEDE Commits lede-commits at lists.infradead.org
Mon Jun 26 01:03:20 PDT 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/124ab1dc0a6235007f60953a796bf29122dfa242

commit 124ab1dc0a6235007f60953a796bf29122dfa242
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Sat Jun 10 20:51:33 2017 +0200

    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 at mein.io>
---
 package/system/procd/Makefile           | 2 +-
 package/system/procd/files/hotplug.json | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 7bb1d7b..8b987aa 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=procd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(LEDE_GIT)/project/procd.git
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index e5f8d96..168f9b8 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" ],
 					],



More information about the lede-commits mailing list