From 83a3fa91b0444f8c0d4eea35defabf55285c87e9 Mon Sep 17 00:00:00 2001 From: William Fleurant Date: Tue, 9 Jun 2020 23:20:43 -0400 Subject: [PATCH] luci-app-cjdns: Add rpcd acl file (#576) Signed-off-by: William Fleurant --- luci-app-cjdns/Makefile | 5 +++-- luci-app-cjdns/files/luci-app-cjdns.json | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 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 bbc367e..9396528 100644 --- a/luci-app-cjdns/Makefile +++ b/luci-app-cjdns/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-cjdns PKG_VERSION:=1.3 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_MAINTAINER:=William Fleurant PKG_LICENSE:=GPL-3.0-or-later @@ -45,8 +45,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" ] + } + } +} +