]> git.proxmox.com Git - pve-guest-common.git/commit
helpers : add check_vnet_access
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 7 Jun 2023 12:03:52 +0000 (14:03 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Jun 2023 14:47:31 +0000 (16:47 +0200)
commitaabf879e0c1e5769608e6a028e0b3022f8f6b4e7
tree748efe950313fed197d1a53d784e78d36a412c68
parentd8777f5653cac402bc98e29bccaffc6e04c6c707
helpers : add check_vnet_access

if a tag is defined, test if user have a specific access to the vlan (or propagate from full bridge acl or zone)
if trunks is defined, we check permissions for each vlan of the trunks
if no tag, test if user have access to full bridge.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
FG:
- conditionalize check for bridge
- make trunk to tags helper private for now

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/GuestHelpers.pm