[PATCH pve-access-control v5 03/46] permissions: add ACL path for prefix-lists and route-maps

Stefan Hanreich
2026-05-05T15:40:11Z

Add new paths for route maps and prefix lists respectively. Route maps
theoretically have multiple entries with an ordering number, but it
doesn't really make sense to make permissions more granular than on a
per-route map basis.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
src/PVE/AccessControl.pm | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm
index 10e1f27..0d632b3 100644
--- a/src/PVE/AccessControl.pm
+++ b/src/PVE/AccessControl.pm
@@ -1300,6 +1300,10 @@ sub check_path {
|/sdn/fabrics/[[:alnum:]]+
|/sdn/ipams
|/sdn/ipams/[[:alnum:]]+
+ |/sdn/prefix-lists
+ |/sdn/prefix-lists/[[:alnum:]]+
+ |/sdn/route-maps
+ |/sdn/route-maps/[[:alnum:]]+
|/sdn/zones
|/sdn/zones/[[:alnum:]\.\-\_]+
|/sdn/zones/[[:alnum:]\.\-\_]+/[[:alnum:]\.\-\_]+
--
2.47.3