From 8e7ab041cebdd8fc8847963dabac618b20af1547 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 28 Nov 2023 12:51:37 +0100 Subject: [PATCH] ubox: add acl file for logd Fixes ubus reconnect, since the process user id changes to 'logd' Signed-off-by: Felix Fietkau --- package/system/ubox/Makefile | 3 ++- package/system/ubox/files/logd.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 package/system/ubox/files/logd.json 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" ] +} -- 2.30.2