mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 21:24:35 +04:00
luci-app-*: migrate LogreadBox consumers to use new permission ACLs
"ubus": {
"log": [ "read" ]
}
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -8,10 +8,11 @@
|
|||||||
"/proc/sys/kernel/hostname": [ "read" ],
|
"/proc/sys/kernel/hostname": [ "read" ],
|
||||||
"/etc/ssl/acme": [ "list" ],
|
"/etc/ssl/acme": [ "list" ],
|
||||||
"/usr/libexec/acmesh-dnsinfo.sh": [ "exec" ],
|
"/usr/libexec/acmesh-dnsinfo.sh": [ "exec" ],
|
||||||
"/sbin/logread -e acme": [ "exec" ],
|
|
||||||
"/usr/sbin/logread -e acme": [ "exec" ]
|
|
||||||
},
|
},
|
||||||
"uci": [ "acme", "ddns" ]
|
"uci": [ "acme", "ddns" ],
|
||||||
|
"ubus": {
|
||||||
|
"log": [ "read" ]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
"uci": [ "acme" ]
|
"uci": [ "acme" ]
|
||||||
|
|||||||
@@ -33,12 +33,6 @@
|
|||||||
"/var/run/adb_runtime.json": [
|
"/var/run/adb_runtime.json": [
|
||||||
"read"
|
"read"
|
||||||
],
|
],
|
||||||
"/sbin/logread -e adblock-": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/usr/sbin/logread -e adblock-": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/etc/init.d/adblock reload": [
|
"/etc/init.d/adblock reload": [
|
||||||
"exec"
|
"exec"
|
||||||
],
|
],
|
||||||
@@ -61,6 +55,9 @@
|
|||||||
"exec"
|
"exec"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"ubus": {
|
||||||
|
"log": [ "read" ]
|
||||||
|
},
|
||||||
"uci": [
|
"uci": [
|
||||||
"adblock"
|
"adblock"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -30,18 +30,6 @@
|
|||||||
"/var/run/banip.lock": [
|
"/var/run/banip.lock": [
|
||||||
"read"
|
"read"
|
||||||
],
|
],
|
||||||
"/sbin/logread -e banIP-": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/usr/sbin/logread -e banIP-": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/sbin/logread -e banIP/": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/usr/sbin/logread -e banIP/": [
|
|
||||||
"exec"
|
|
||||||
],
|
|
||||||
"/usr/sbin/nft -tj list sets": [
|
"/usr/sbin/nft -tj list sets": [
|
||||||
"exec"
|
"exec"
|
||||||
],
|
],
|
||||||
@@ -70,6 +58,9 @@
|
|||||||
"exec"
|
"exec"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"ubus": {
|
||||||
|
"log": [ "read" ]
|
||||||
|
},
|
||||||
"uci": [
|
"uci": [
|
||||||
"banip"
|
"banip"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -3,15 +3,16 @@
|
|||||||
"description": "Grant UCI access for luci-app-clamav",
|
"description": "Grant UCI access for luci-app-clamav",
|
||||||
"read": {
|
"read": {
|
||||||
"file": [ "/tmp/*" ],
|
"file": [ "/tmp/*" ],
|
||||||
|
"ubus": {
|
||||||
|
"log": [ "read" ]
|
||||||
|
},
|
||||||
"uci": [ "clamav", "clamav-milter", "freshclam" ]
|
"uci": [ "clamav", "clamav-milter", "freshclam" ]
|
||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
"file": {
|
"file": {
|
||||||
"/etc/init.d/clamav *": [ "exec" ],
|
"/etc/init.d/clamav *": [ "exec" ],
|
||||||
"/etc/init.d/clamav-milter *": [ "exec" ],
|
"/etc/init.d/clamav-milter *": [ "exec" ],
|
||||||
"/etc/init.d/freshclam *": [ "exec" ],
|
"/etc/init.d/freshclam *": [ "exec" ]
|
||||||
"/sbin/logread -e clamav": [ "exec" ],
|
|
||||||
"/usr/sbin/logread -e clamav": [ "exec" ]
|
|
||||||
},
|
},
|
||||||
"uci": [ "clamav", "clamav-milter", "freshclam" ]
|
"uci": [ "clamav", "clamav-milter", "freshclam" ]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"luci-app-nextdns": {
|
"luci-app-nextdns": {
|
||||||
"description": "Grant logread access to LuCI app nextdns",
|
"description": "Grant logread access to LuCI app nextdns",
|
||||||
"read": {
|
"read": {
|
||||||
"file": {
|
"ubus": {
|
||||||
"/sbin/logread": [ "exec" ]
|
"log": [ "read" ]
|
||||||
},
|
},
|
||||||
"uci": [ "nextdns" ]
|
"uci": [ "nextdns" ]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,14 +15,15 @@
|
|||||||
"/var/run/travelmate.scan": [ "read" ],
|
"/var/run/travelmate.scan": [ "read" ],
|
||||||
"/var/state/travelmate.refresh": [ "read" ],
|
"/var/state/travelmate.refresh": [ "read" ],
|
||||||
"/tmp/trm_runtime.json": [ "read" ],
|
"/tmp/trm_runtime.json": [ "read" ],
|
||||||
"/sbin/logread -e trm-": [ "exec" ],
|
|
||||||
"/usr/sbin/logread -e trm-": [ "exec" ],
|
|
||||||
"/sbin/ifup *": [ "exec" ],
|
"/sbin/ifup *": [ "exec" ],
|
||||||
"/etc/init.d/travelmate start" : [ "exec" ],
|
"/etc/init.d/travelmate start" : [ "exec" ],
|
||||||
"/etc/init.d/travelmate stop" : [ "exec" ],
|
"/etc/init.d/travelmate stop" : [ "exec" ],
|
||||||
"/etc/init.d/travelmate setup [0-9a-z_]* [0-9a-z_]* [0-9]*" : [ "exec" ],
|
"/etc/init.d/travelmate setup [0-9a-z_]* [0-9a-z_]* [0-9]*" : [ "exec" ],
|
||||||
"/etc/init.d/travelmate scan radio[0-1]" : [ "exec" ]
|
"/etc/init.d/travelmate scan radio[0-1]" : [ "exec" ]
|
||||||
},
|
},
|
||||||
|
"ubus": {
|
||||||
|
"log": [ "read" ]
|
||||||
|
},
|
||||||
"uci": [ "travelmate", "wireless" ]
|
"uci": [ "travelmate", "wireless" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user