Просмотр исходного кода

ubox: add acl file for logd

Fixes ubus reconnect, since the process user id changes to 'logd'

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 1 год назад
Родитель
Сommit
8e7ab041ce
2 измененных файлов с 6 добавлено и 1 удалено
  1. 2 1
      package/system/ubox/Makefile
  2. 4 0
      package/system/ubox/files/logd.json

+ 2 - 1
package/system/ubox/Makefile

@@ -63,10 +63,11 @@ define Package/ubox/install
 endef
 
 define Package/logd/install
-	$(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d/
+	$(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d/ $(1)/usr/share/acl.d
 
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{logd,logread} $(1)/sbin/
 	$(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
+	$(INSTALL_DATA) ./files/logd.json $(1)/usr/share/acl.d
 endef
 
 $(eval $(call BuildPackage,ubox))

+ 4 - 0
package/system/ubox/files/logd.json

@@ -0,0 +1,4 @@
+{
+	"user": "logd",
+	"publish": [ "log" ]
+}