summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-acl/root/usr/share/rpcd
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-acl/root/usr/share/rpcd')
-rw-r--r--applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json19
1 files changed, 19 insertions, 0 deletions
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" ]
+ }
+ }
+}