From: Felix Fietkau Date: Tue, 28 Nov 2023 11:51:37 +0000 (+0100) Subject: ubox: add acl file for logd X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fhauke.git;a=commitdiff_plain;h=8e7ab041cebdd8fc8847963dabac618b20af1547 ubox: add acl file for logd Fixes ubus reconnect, since the process user id changes to 'logd' Signed-off-by: Felix Fietkau --- diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile index e91763b074..17bade25e4 100644 --- a/package/system/ubox/Makefile +++ b/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)) diff --git a/package/system/ubox/files/logd.json b/package/system/ubox/files/logd.json new file mode 100644 index 0000000000..f0b2fb1e12 --- /dev/null +++ b/package/system/ubox/files/logd.json @@ -0,0 +1,4 @@ +{ + "user": "logd", + "publish": [ "log" ] +}