secubox-openwrt/package/secubox/luci-app-master-link/root/usr/share/rpcd/acl.d/luci-app-master-link.json
CyberMind-FR 13960d39c3 fix(master-link): Rename RPCD to luci.master_link and flatten JSON output
Hyphens in RPCD filenames break ubus CLI argument parsing. Rename
luci.master-link to luci.master_link and update all references in
the JS view, ACL, and Makefile. Also pipe RPCD method output through
tr -d '\n\t' so ubus receives single-line JSON it can parse.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 06:40:41 +01:00

26 lines
496 B
JSON

{
"luci-app-master-link": {
"description": "Grant access to SecuBox Master-Link mesh management",
"read": {
"file": {
"/etc/config/master-link": ["read"],
"/var/lib/secubox-master-link/requests/*": ["read"]
},
"ubus": {
"file": ["read", "stat"],
"luci.master_link": ["*"]
},
"uci": ["master-link"]
},
"write": {
"file": {
"/etc/config/master-link": ["write"]
},
"ubus": {
"luci.master_link": ["*"]
},
"uci": ["master-link"]
}
}
}