mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-app-mwan3: split ACL into status and config
With this change, the status of mwan3 can be made available to other users separately, without them having the rights to change the configuration of mwan3. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"depends": {
|
||||
"acl": [
|
||||
"luci-app-mwan3"
|
||||
"luci-app-mwan3-status"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,7 +1,58 @@
|
||||
{
|
||||
"luci-app-mwan3": {
|
||||
"description": "Grant UCI access for luci-app-mwan3",
|
||||
"luci-app-mwan3-status": {
|
||||
"description": "Grant access for luci-app-mwan3 status information",
|
||||
"read": {
|
||||
"cgi-io": [
|
||||
"exec"
|
||||
],
|
||||
"file": {
|
||||
"/usr/sbin/mwan3 status": [
|
||||
"exec"
|
||||
]
|
||||
},
|
||||
"ubus": {
|
||||
"mwan3": [
|
||||
"status"
|
||||
]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/usr/libexec/luci-mwan3 diag gateway *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/libexec/luci-mwan3 diag tracking *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/libexec/luci-mwan3 diag rules *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/libexec/luci-mwan3 diag routes *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 internal ipv4": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifup *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifdown *": [
|
||||
"exec"
|
||||
]
|
||||
},
|
||||
"ubus": {
|
||||
"file": [
|
||||
"exec"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"luci-app-mwan3": {
|
||||
"description": "Grant access for luci-app-mwan3 configuration",
|
||||
"read": {
|
||||
"cgi-io": [
|
||||
"exec"
|
||||
],
|
||||
"file": {
|
||||
"/etc/mwan3.user": [
|
||||
"read"
|
||||
@@ -15,25 +66,7 @@
|
||||
"/usr/bin/arping": [
|
||||
"list"
|
||||
],
|
||||
"/usr/sbin/mwan3 status": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifup *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifdown *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 internal ipv4": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 internal ipv6": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/libexec/luci-mwan3 diag * *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/libexec/luci-mwan3 ipset *": [
|
||||
"/usr/libexec/luci-mwan3 ipset dump": [
|
||||
"exec"
|
||||
]
|
||||
},
|
||||
@@ -51,12 +84,6 @@
|
||||
"file": {
|
||||
"/etc/mwan3.user": [
|
||||
"write"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifup *": [
|
||||
"exec"
|
||||
],
|
||||
"/usr/sbin/mwan3 ifdown *": [
|
||||
"exec"
|
||||
]
|
||||
},
|
||||
"uci": [
|
||||
|
||||
Reference in New Issue
Block a user