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>
117 lines
1.9 KiB
JSON
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"
|
|
]
|
|
}
|
|
}
|
|
}
|