diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-26 22:48:20 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-26 22:48:20 +0100 |
commit | 40ee3fa3ce1742d625123be11f41df04cf353d7a (patch) | |
tree | 144118f66fa49e1ccf402a7fe34991c2a104cbd2 /applications/luci-app-wol/root/usr/share/rpcd/acl.d | |
parent | b34d08ca9ab3a4b9b09eeef7e1c234802e860a47 (diff) |
luci-app-woll: convert to client side rendering
Also make the interface option mandatory
Fixes: #3557
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-wol/root/usr/share/rpcd/acl.d')
-rw-r--r-- | applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json b/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json new file mode 100644 index 0000000000..62a1eb9759 --- /dev/null +++ b/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json @@ -0,0 +1,16 @@ +{ + "luci-app-wol": { + "description": "Grant access to wake-on-lan executables", + "read": { + "ubus": { + "luci-rpc": [ "getHostHints" ] + } + }, + "write": { + "file": { + "/usr/bin/etherwake": [ "exec" ], + "/usr/bin/wol": [ "exec" ] + } + } + } +} |