summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-04-09 10:37:05 +0300
committerSergey Ponomarev <stokito@gmail.com>2024-04-09 11:02:00 +0300
commit6afea76f4e5eabc6f0c73729afa3bd3df745e415 (patch)
tree3039d10ab4217670de7a3c5ca438ed10610e3e15 /applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d
parent4b771b3df0c39baed5e0904ad66e460691194636 (diff)
luci-app-filebrowser: File Browser
Add a File Browser based on the FileUpload CBI element. It allows browsing files and directories on a router, delete and upload. This covers only basic needs. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d')
-rw-r--r--applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json
new file mode 100644
index 0000000000..858a8dd70d
--- /dev/null
+++ b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json
@@ -0,0 +1,14 @@
+{
+ "luci-app-filebrowser": {
+ "description": "Grant access to File Browser",
+ "write": {
+ "cgi-io": [ "upload", "download" ],
+ "ubus": {
+ "file": [ "*" ]
+ },
+ "file": {
+ "/*": [ "list", "read", "write" ]
+ }
+ }
+ }
+}