diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-18 23:10:32 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-18 23:25:22 +0200 |
commit | 82a469f75fef18d10518231c46e232b06496a6bf (patch) | |
tree | ac40afe653b41ef8bc4748d67d1dc4ca55f5fca0 /applications/luci-app-acl/root/usr/share | |
parent | 7882f3ebdde0364314a45aa6dd8fbc4e766e8ea8 (diff) |
luci-app-acl: add initial version of login management module
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-acl/root/usr/share')
-rw-r--r-- | applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json | 14 | ||||
-rw-r--r-- | applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json | 19 |
2 files changed, 33 insertions, 0 deletions
diff --git a/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json b/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json new file mode 100644 index 0000000000..c00465c32e --- /dev/null +++ b/applications/luci-app-acl/root/usr/share/luci/menu.d/luci-app-acl.json @@ -0,0 +1,14 @@ +{ + "admin/system/acl": { + "title": "ACL Settings", + "order": 10, + "action": { + "type": "view", + "path": "system/acl" + }, + "depends": { + "acl": [ "luci-app-acl" ], + "uci": { "rpcd": true } + } + } +} diff --git a/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json b/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json new file mode 100644 index 0000000000..89834af09f --- /dev/null +++ b/applications/luci-app-acl/root/usr/share/rpcd/acl.d/luci-app-acl.json @@ -0,0 +1,19 @@ +{ + "luci-app-acl": { + "description": "Grant access to ACL configuration", + "read": { + "cgi-io": [ "list", "read" ], + "file": { + "/etc/passwd": [ "read" ], + "/usr/sbin/uhttpd": [ "list" ], + "/usr/sbin/uhttpd -m *": [ "exec" ], + "/usr/share/rpcd/acl.d": [ "list" ], + "/usr/share/rpcd/acl.d/*.json": [ "read" ] + }, + "uci": [ "rpcd" ] + }, + "write": { + "uci": [ "rpcd" ] + } + } +} |