mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-proto-modemmanager: fix acl regex to support more then 9 modem objects
If a modem is restarted often, the modem manager object number is increased by one. Currently, the regex is set so that the modem can no longer be selected if the object number is greater than 9. This change fixes that. Signed-off-by: Florian Eckert <fe@dev.tdt.de> [replace wildcard with rule duplication to disallow option injection] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
committed by
Jo-Philipp Wich
parent
3d0313dc38
commit
71b7ecb777
@@ -5,7 +5,9 @@
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/usr/bin/mmcli -L": [ "exec" ],
|
||||
"/usr/bin/mmcli -m [0-9]": [ "exec" ]
|
||||
"/usr/bin/mmcli -m [0-9]": [ "exec" ],
|
||||
"/usr/bin/mmcli -m [0-9][0-9]": [ "exec" ],
|
||||
"/usr/bin/mmcli -m [0-9][0-9][0-9]": [ "exec" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user