From d71dc69844e056a5fcefd27b7f00ce65648184da Mon Sep 17 00:00:00 2001 From: LitingLin Date: Mon, 4 May 2020 10:55:07 +0800 Subject: [PATCH] make compatible with new upstream Luci requirement (#4529) --- package/lean/luci-app-arpbind/Makefile | 2 +- .../root/usr/share/rpcd/acl.d/luci-app-arpbind.json | 11 +++++++++++ package/lean/luci-app-zerotier/Makefile | 2 +- .../root/usr/share/rpcd/acl.d/luci-app-zerotier.json | 11 +++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 package/lean/luci-app-arpbind/root/usr/share/rpcd/acl.d/luci-app-arpbind.json create mode 100644 package/lean/luci-app-zerotier/root/usr/share/rpcd/acl.d/luci-app-zerotier.json diff --git a/package/lean/luci-app-arpbind/Makefile b/package/lean/luci-app-arpbind/Makefile index e48ce83c5..9faabaed2 100755 --- a/package/lean/luci-app-arpbind/Makefile +++ b/package/lean/luci-app-arpbind/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=ARP Binding LUCI_DEPENDS:=+ip-full LUCI_PKGARCH:=all PKG_VERSION:=1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-arpbind/root/usr/share/rpcd/acl.d/luci-app-arpbind.json b/package/lean/luci-app-arpbind/root/usr/share/rpcd/acl.d/luci-app-arpbind.json new file mode 100644 index 000000000..19bc1f230 --- /dev/null +++ b/package/lean/luci-app-arpbind/root/usr/share/rpcd/acl.d/luci-app-arpbind.json @@ -0,0 +1,11 @@ +{ + "luci-app-arpbind": { + "description": "Grant UCI access for luci-app-arpbind", + "read": { + "uci": [ "arpbind" ] + }, + "write": { + "uci": [ "arpbind" ] + } + } +} diff --git a/package/lean/luci-app-zerotier/Makefile b/package/lean/luci-app-zerotier/Makefile index 61d1f826a..6275fce41 100644 --- a/package/lean/luci-app-zerotier/Makefile +++ b/package/lean/luci-app-zerotier/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=LuCI for Zerotier LUCI_DEPENDS:=+zerotier LUCI_PKGARCH:=all PKG_VERSION:=1.0 -PKG_RELEASE:=18 +PKG_RELEASE:=19 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-zerotier/root/usr/share/rpcd/acl.d/luci-app-zerotier.json b/package/lean/luci-app-zerotier/root/usr/share/rpcd/acl.d/luci-app-zerotier.json new file mode 100644 index 000000000..2724e99bf --- /dev/null +++ b/package/lean/luci-app-zerotier/root/usr/share/rpcd/acl.d/luci-app-zerotier.json @@ -0,0 +1,11 @@ +{ + "luci-app-zerotier": { + "description": "Grant UCI access for luci-app-zerotier", + "read": { + "uci": [ "zerotier" ] + }, + "write": { + "uci": [ "zerotier" ] + } + } +}