From 835c55b9e70ae8de6278b33e8d166785334b9015 Mon Sep 17 00:00:00 2001 From: William Fleurant Date: Sun, 7 Jun 2020 18:49:14 -0400 Subject: [PATCH] luci-app-cjdns: Add rpcd acl file Signed-off-by: William Fleurant --- luci-app-cjdns/Makefile | 9 +++++---- luci-app-cjdns/files/luci-app-cjdns.json | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 luci-app-cjdns/files/luci-app-cjdns.json diff --git a/luci-app-cjdns/Makefile b/luci-app-cjdns/Makefile index 9c92151..401af24 100644 --- a/luci-app-cjdns/Makefile +++ b/luci-app-cjdns/Makefile @@ -18,9 +18,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-cjdns PKG_VERSION:=1.3 -PKG_RELEASE:=6 +PKG_RELEASE:=7 -PKG_LICENSE:=GPL-3.0 +PKG_MAINTAINER:=William Fleurant +PKG_LICENSE:=GPL-3.0-or-later include $(INCLUDE_DIR)/package.mk @@ -30,7 +31,6 @@ define Package/luci-app-cjdns SUBMENU:=3. Applications TITLE:=Encrypted near-zero-conf mesh routing protocol URL:=https://github.com/cjdelisle/cjdns - MAINTAINER:=Lars Gierth DEPENDS:=+cjdns +luci-base endef @@ -47,8 +47,9 @@ define Build/Compile endef define Package/luci-app-cjdns/install - $(INSTALL_DIR) $(1)/usr/lib/lua/luci + $(INSTALL_DIR) $(1)/usr/lib/lua/luci $(1)/usr/share/rpcd/acl.d $(CP) ./luasrc/* $(1)/usr/lib/lua/luci + $(CP) ./files/luci-app-cjdns.json $(1)/usr/share/rpcd/acl.d endef $(eval $(call BuildPackage,luci-app-cjdns)) diff --git a/luci-app-cjdns/files/luci-app-cjdns.json b/luci-app-cjdns/files/luci-app-cjdns.json new file mode 100644 index 0000000..5ec2170 --- /dev/null +++ b/luci-app-cjdns/files/luci-app-cjdns.json @@ -0,0 +1,15 @@ +{ + "luci-app-cjdns": { + "description": "Grant access to LuCI app cjdns", + "read": { + "uci": [ "cjdns" ] + }, + "write": { + "file": { + "/usr/bin/cjdrouteconf": [ "exec" ] + }, + "uci": [ "cjdns" ] + } + } +} +