Merge pull request #5330 from TDT-AG/pr/20210903-luci-mod-status
luci-mod-status: move index acl into own file
This commit is contained in:
commit
add3fe2394
2 changed files with 52 additions and 51 deletions
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"luci-mod-status-index": {
|
||||||
|
"description": "Grant access to main status display",
|
||||||
|
"read": {
|
||||||
|
"file": {
|
||||||
|
"/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
|
||||||
|
"/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
|
||||||
|
"/usr/lib/lua/luci/version.lua": [ "read" ],
|
||||||
|
"/www/luci-static/resources/view/status/include": [ "list" ]
|
||||||
|
},
|
||||||
|
"ubus": {
|
||||||
|
"file": [ "list", "read" ],
|
||||||
|
"system": [ "board", "info" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"write": {
|
||||||
|
"uci": [ "dhcp" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"luci-mod-status-index-dhcp": {
|
||||||
|
"description": "Grant access to DHCP status display",
|
||||||
|
"read": {
|
||||||
|
"ubus": {
|
||||||
|
"luci-rpc": [ "getDHCPLeases" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"luci-mod-status-index-dsl": {
|
||||||
|
"description": "Grant access to DSL status display",
|
||||||
|
"read": {
|
||||||
|
"ubus": {
|
||||||
|
"dsl": [ "metrics" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"luci-mod-status-index-wifi": {
|
||||||
|
"description": "Grant access to wireless status display",
|
||||||
|
"read": {
|
||||||
|
"ubus": {
|
||||||
|
"iwinfo": [ "assoclist" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"write": {
|
||||||
|
"ubus": {
|
||||||
|
"hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -90,56 +90,5 @@
|
||||||
"file": [ "exec" ]
|
"file": [ "exec" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
"luci-mod-status-index": {
|
|
||||||
"description": "Grant access to main status display",
|
|
||||||
"read": {
|
|
||||||
"file": {
|
|
||||||
"/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
|
|
||||||
"/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
|
|
||||||
"/usr/lib/lua/luci/version.lua": [ "read" ],
|
|
||||||
"/www/luci-static/resources/view/status/include": [ "list" ]
|
|
||||||
},
|
|
||||||
"ubus": {
|
|
||||||
"file": [ "list", "read" ],
|
|
||||||
"system": [ "board", "info" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"write": {
|
|
||||||
"uci": [ "dhcp" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"luci-mod-status-index-dhcp": {
|
|
||||||
"description": "Grant access to DHCP status display",
|
|
||||||
"read": {
|
|
||||||
"ubus": {
|
|
||||||
"luci-rpc": [ "getDHCPLeases" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"luci-mod-status-index-dsl": {
|
|
||||||
"description": "Grant access to DSL status display",
|
|
||||||
"read": {
|
|
||||||
"ubus": {
|
|
||||||
"dsl": [ "metrics" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"luci-mod-status-index-wifi": {
|
|
||||||
"description": "Grant access to wireless status display",
|
|
||||||
"read": {
|
|
||||||
"ubus": {
|
|
||||||
"iwinfo": [ "assoclist" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"write": {
|
|
||||||
"ubus": {
|
|
||||||
"hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue