summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-08 11:28:14 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-08 11:28:14 +0100
commit58c091ac9b2fc8c63cc3f6332da7f6507904ab12 (patch)
treea5177da3eb38ca3c0615f932ada0c74c34fb3b14 /protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d
parent50720d36a362c53352fecd3186f2b08c51f26c7b (diff)
luci-proto-modemmanager: use nmcli to detemrine modem choices
Fixes: #3586 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d')
-rw-r--r--protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json12
1 files changed, 12 insertions, 0 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
new file mode 100644
index 0000000000..716f4c4655
--- /dev/null
+++ b/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
@@ -0,0 +1,12 @@
+{
+ "luci-proto-modemmanager": {
+ "description": "Grant access to mmcli",
+ "read": {
+ "cgi-io": [ "exec" ],
+ "file": {
+ "/usr/bin/mmcli -L": [ "exec" ],
+ "/usr/bin/mmcli -m [0-9]": [ "exec" ]
+ }
+ }
+ }
+}