luci-proto-modemmanager: fix acl regex to support more then 9 modem objects
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 3 Feb 2023 08:56:00 +0000 (09:56 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 11:51:44 +0000 (13:51 +0200)
commit02e076605e7824638b04dccba182df2fcc9b97d1
treeb5be86993f85b7b600f3b00d147e045750520a3c
parent52965f40770c85b448712358ee810bcde99c0a25
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>
(cherry picked from commit 71b7ecb7770e11168f02e53b00195c94cee9b28e)
protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json