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 7bb1d7b..8b987aa 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 e5f8d96..168f9b8 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" ],