secubox-openwrt/luci-app-client-guardian/root/usr/share/rpcd/acl.d/luci-app-client-guardian.json
CyberMind-FR 36aea4ffbd fix(client-guardian): correct RPC namespace and add missing ACL methods
- Fixed RPC namespace from "client-guardian" to "luci.client-guardian"
- Added missing read methods: get_client, list_sessions, get_policy
- Added missing write methods: set_policy, authorize_client, deauthorize_client
- Resolves "Access denied" errors for zones and other endpoints

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 09:32:17 +01:00

27 lines
908 B
JSON

{
"luci-app-client-guardian": {
"description": "Grant access to LuCI Client Guardian Dashboard",
"read": {
"ubus": {
"luci.client-guardian": [ "status", "clients", "get_client", "zones", "parental", "portal", "alerts", "logs", "list_sessions", "get_policy" ],
"system": [ "info", "board" ],
"network.interface": [ "status", "dump" ],
"file": [ "read", "stat" ]
},
"uci": [ "network", "dhcp", "firewall", "client-guardian" ],
"file": {
"/etc/config/*": [ "read" ],
"/tmp/dhcp.leases": [ "read" ],
"/proc/net/arp": [ "read" ],
"/var/log/client-guardian.log": [ "read" ]
}
},
"write": {
"ubus": {
"luci.client-guardian": [ "approve_client", "ban_client", "quarantine_client", "update_client", "update_zone", "update_portal", "send_test_alert", "set_policy", "authorize_client", "deauthorize_client" ]
},
"uci": [ "client-guardian" ]
}
}
}