summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-modemmanager/root
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-02-03 09:56:00 +0100
committerJo-Philipp Wich <jo@mein.io>2023-03-16 00:05:18 +0100
commit71b7ecb7770e11168f02e53b00195c94cee9b28e (patch)
tree8f5fe439a0653d98190d39fb9b2d375194198283 /protocols/luci-proto-modemmanager/root
parent3d0313dc3853b646b77b1a0b6d9757771dcf4b0d (diff)
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>
Diffstat (limited to 'protocols/luci-proto-modemmanager/root')
-rw-r--r--protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json b/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
index 716f4c4655..e3d5df7bec 100644
--- a/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
+++ b/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
@@ -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" ]
}
}
}