summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d
diff options
context:
space:
mode:
authorAyushman Tripathi <ayushmantripathi7724@gmail.com>2023-06-21 19:14:19 +0530
committerFlorian Eckert <fe@dev.tdt.de>2023-06-22 16:02:29 +0200
commit5865d02bfd9dad34e2d3106d57675045d8eb235c (patch)
tree0beff1e6a8090e95214dbab310f1c6132b21f109 /applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d
parent3b9adf800f6d93ec639577fc1f93ad841f841f1f (diff)
luci-app-uhttpd: some fixes because of the lua to javascript porting
* Fix menu path for uhttpd * Add hint that files could only be uploaded to /etc/luci-uploads * Rename not knowing enable_delete FileUpload option to enable_remove * Update ACL list Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> Improvement of the commit title and description Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d')
-rw-r--r--applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json12
1 files changed, 7 insertions, 5 deletions
diff --git a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json
index ab946db77a..f03d0d1a45 100644
--- a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json
+++ b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json
@@ -2,16 +2,18 @@
"luci-app-uhttpd": {
"description": "Grant UCI access for luci-app-uhttpd",
"read": {
- "uci": [ "uhttpd" ],
+ "uci": ["uhttpd"],
"file": {
- "/*": ["read"]
+ "/*": ["read"],
+ "/etc/init.d/uhttpd restart": ["exec"]
}
},
"write": {
- "uci": [ "uhttpd" ],
+ "uci": ["uhttpd"],
"file": {
- "/*": ["write"],
- "/etc/init.d/uhttpd restart": ["exec"]
+ "/etc/luci-uploads/*": ["write"],
+ "/etc/uhttpd.key": ["write"],
+ "/etc/uhttpd.crt": ["write"]
}
}
}