diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-07-02 15:23:39 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-07-09 08:38:11 +0200 |
commit | f5f6b3e4f8e3faed4e9c9926e283c9cf226d4bd8 (patch) | |
tree | e2718f194ede046a90274443f6b61198f35a0961 /applications/luci-app-mwan3/root/usr/share/rpcd | |
parent | 12067c8308936abb567001650105b33bec9a56a9 (diff) |
luci-app-mwan3: convert to JS
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/root/usr/share/rpcd')
-rw-r--r-- | applications/luci-app-mwan3/root/usr/share/rpcd/acl.d/luci-app-mwan3.json | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/root/usr/share/rpcd/acl.d/luci-app-mwan3.json b/applications/luci-app-mwan3/root/usr/share/rpcd/acl.d/luci-app-mwan3.json index 539ed0fb90..91dd225358 100644 --- a/applications/luci-app-mwan3/root/usr/share/rpcd/acl.d/luci-app-mwan3.json +++ b/applications/luci-app-mwan3/root/usr/share/rpcd/acl.d/luci-app-mwan3.json @@ -2,9 +2,30 @@ "luci-app-mwan3": { "description": "Grant UCI access for luci-app-mwan3", "read": { - "uci": [ "mwan3" ] + "file": { + "/etc/mwan3.user": [ "read" ], + "/usr/bin/httping": [ "list" ], + "/usr/bin/nping": [ "list" ], + "/usr/bin/arping": [ "list" ], + "/usr/sbin/mwan3 status": [ "exec" ], + "/usr/sbin/mwan3 ifup *": [ "exec" ], + "/usr/sbin/mwan3 ifdown *": [ "exec" ], + "/usr/sbin/mwan3 internal ipv4": [ "exec" ], + "/usr/sbin/mwan3 internal ipv6": [ "exec" ], + "/usr/libexec/luci-mwan3 diag * *": [ "exec" ], + "/usr/libexec/luci-mwan3 ipset *": [ "exec" ] + }, + "ubus": { + "mwan3": [ "status" ] + }, + "uci": [ "mwan3", "network" ] }, "write": { + "file": { + "/etc/mwan3.user": ["write"], + "/usr/sbin/mwan3 ifup *": [ "exec" ], + "/usr/sbin/mwan3 ifdown *": [ "exec" ] + }, "uci": [ "mwan3" ] } } |