openwrt/packages/luci-app-ocserv/root/usr/share/rpcd/acl.d/luci-app-ocserv.json
Ivan Cherniy 39c0480963 luci-app-ocserv: Service Control buttons on the Server page
Start/Restart/Stop and Enable/Disable like on the pbr page, with a
confirmation for the actions that drop VPN sessions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 19:41:25 +03:00

117 lines
1.9 KiB
JSON

{
"luci-app-ocserv": {
"description": "Grant UCI access for luci-app-ocserv",
"read": {
"file": {
"/etc/ocserv/*": [
"read"
],
"/etc/ocserv/vhosts": [
"list"
],
"/etc/ocserv/vhosts/*": [
"read",
"list"
],
"/sys/class/net/*/statistics/*": [
"read"
],
"/proc/net/ipv6_route": [
"read"
],
"/proc/*/net/ipv6_route": [
"read"
],
"/usr/bin/certtool --hash sha256 --key-id --infile /etc/ocserv/server-cert.pem": [
"exec"
],
"/usr/bin/occtl show users": [
"exec"
],
"/usr/bin/occtl --json show users": [
"exec"
],
"/usr/bin/occtl reload": [
"exec"
],
"/usr/bin/occtl disconnect id *": [
"exec"
],
"/etc/ocserv/config-per-user": [
"list"
],
"/etc/ocserv/config-per-group": [
"list"
],
"/etc/ocserv/config-per-user/*": [
"read"
],
"/etc/ocserv/config-per-group/*": [
"read"
],
"/bin/mkdir -p /etc/ocserv/config-per-user": [
"exec"
],
"/bin/mkdir -p /etc/ocserv/config-per-group": [
"exec"
],
"/bin/mkdir -p /etc/ocserv/vhosts/*": [
"exec"
]
},
"ubus": {
"file": [
"exec"
],
"rc": [
"init",
"list"
],
"luci.ocserv-pki": [
"list"
]
},
"uci": [
"ocserv"
]
},
"write": {
"file": {
"/etc/ocserv/ocserv.conf.template": [
"write"
],
"/etc/ocserv/vhosts/*": [
"write",
"list"
],
"/etc/ocserv/config-per-user/*": [
"write"
],
"/etc/ocserv/config-per-group/*": [
"write"
]
},
"ubus": {
"file": [
"exec"
],
"rc": [
"init",
"list"
],
"luci.ocserv-pki": [
"issue",
"revoke",
"set_user",
"get_file",
"create_vhost",
"delete_vhost",
"apply_auth"
]
},
"uci": [
"ocserv"
]
}
}
}