procd: assign /dev/tty* nodes to "tty" group
authorJo-Philipp Wich <jo@mein.io>
Sat, 10 Jun 2017 18:51:33 +0000 (20:51 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 26 Jun 2017 08:02:20 +0000 (10:02 +0200)
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>
package/system/procd/Makefile
package/system/procd/files/hotplug.json

index 7bb1d7b166df1f7f2060cc961d343db0535347d7..8b987aabaf55620121ae8bbe75ab707ab437d140 100644 (file)
@@ -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
index e5f8d967e8c16c8dc85a437a5259c0ba840d766c..168f9b83a80e886563a8e3c6b7889e817ce5bf65 100644 (file)
                                                [ "regex", "DEVNAME", "^snd" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
                                        ],
+                                       [ "if",
+                                               [ "regex", "DEVNAME", "^tty" ],
+                                               [ "makedev", "/dev/%DEVNAME%", "0660", "tty" ],
+                                       ],
                                        [ "if",
                                                [ "has", "DEVNAME" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0600" ],