summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-acl/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-acl/root/usr/share')
-rw-r--r--applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json14
-rw-r--r--applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json19
2 files changed, 33 insertions, 0 deletions
diff --git a/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json b/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json
new file mode 100644
index 0000000000..c00465c32e
--- /dev/null
+++ b/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json
@@ -0,0 +1,14 @@
+{
+ "admin/system/acl": {
+ "title": "ACL Settings",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "system/acl"
+ },
+ "depends": {
+ "acl": [ "luci-app-acl" ],
+ "uci": { "rpcd": true }
+ }
+ }
+}
diff --git a/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json b/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json
new file mode 100644
index 0000000000..89834af09f
--- /dev/null
+++ b/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json
@@ -0,0 +1,19 @@
+{
+ "luci-app-acl": {
+ "description": "Grant access to ACL configuration",
+ "read": {
+ "cgi-io": [ "list", "read" ],
+ "file": {
+ "/etc/passwd": [ "read" ],
+ "/usr/sbin/uhttpd": [ "list" ],
+ "/usr/sbin/uhttpd -m *": [ "exec" ],
+ "/usr/share/rpcd/acl.d": [ "list" ],
+ "/usr/share/rpcd/acl.d/*.json": [ "read" ]
+ },
+ "uci": [ "rpcd" ]
+ },
+ "write": {
+ "uci": [ "rpcd" ]
+ }
+ }
+}