From 2284f0da80b8afe5bd3a8fc0b8593e4a875993e1 Mon Sep 17 00:00:00 2001 From: HQ Ong Date: Wed, 15 Apr 2020 20:40:07 +0800 Subject: [PATCH] Add ACL rule to compatible with trunk Luci requirement (#4323) Add ACL rule to compatible with trunk Luci requirement --- package/lean/luci-app-ssr-plus/Makefile | 3 +++ .../root/usr/share/rpcd/acl.d/luci-app-ssr-plus.json | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 package/lean/luci-app-ssr-plus/root/usr/share/rpcd/acl.d/luci-app-ssr-plus.json diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index 17fa2180af5750..8e64aa7d03a71c 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -94,6 +94,9 @@ define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/share/shadowsocksr $(INSTALL_BIN) ./root/usr/share/shadowsocksr/*.sh $(1)/usr/share/shadowsocksr/ $(INSTALL_DATA) ./root/usr/share/shadowsocksr/*.lua $(1)/usr/share/shadowsocksr/ + + $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d + $(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller $(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/ diff --git a/package/lean/luci-app-ssr-plus/root/usr/share/rpcd/acl.d/luci-app-ssr-plus.json b/package/lean/luci-app-ssr-plus/root/usr/share/rpcd/acl.d/luci-app-ssr-plus.json new file mode 100644 index 00000000000000..4efc8fc531bbf5 --- /dev/null +++ b/package/lean/luci-app-ssr-plus/root/usr/share/rpcd/acl.d/luci-app-ssr-plus.json @@ -0,0 +1,11 @@ +{ + "luci-app-ssr-plus": { + "description": "Grant UCI access for luci-app-ssr-plus", + "read": { + "uci": [ "shadowsocksr" ] + }, + "write": { + "uci": [ "shadowsocksr" ] + } + } +}