ubus: prepare to run ubusd as non-root user
authorDaniel Golle <daniel@makrotopia.org>
Mon, 19 Oct 2020 20:38:17 +0000 (21:38 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 21 Oct 2020 14:20:10 +0000 (15:20 +0100)
Move /var/run/ubus.sock to /var/run/ubus/ubus.sock in preparation for
having ubusd run as non-root user.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/system/ubus/Makefile

index 824e71924fb96010e84bf63cae3b78c39cf8a0c1..a1c35a7c0f58a1624cbe99d3b233ce066cc9af7b 100644 (file)
@@ -5,9 +5,9 @@ PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubus.git
-PKG_SOURCE_DATE:=2020-02-05
-PKG_SOURCE_VERSION:=171469e3138cce191892e20b6fd35b52c9368064
-PKG_MIRROR_HASH:=b4f1a3d70c2685c2aee2724b980b2ff747f8662f74d04d8be1c5a5e950b0e2ef
+PKG_SOURCE_DATE:=2020-10-21
+PKG_SOURCE_VERSION:=13a4438b4ebdf85d301999e0a615640ac4c9b0a8
+PKG_MIRROR_HASH:=e9e88bb78993a31a33a1c9579f1facca2949c1a4397b842a9f1b469b170be5da
 CMAKE_INSTALL:=1
 
 PKG_LICENSE:=LGPL-2.1
@@ -31,6 +31,7 @@ define Package/ubusd
   CATEGORY:=Base system
   TITLE:=OpenWrt RPC daemon
   DEPENDS:=+libubox +libblobmsg-json
+  USERID:=ubus=81:ubus=81
 endef
 
 define Package/libubus