[pve-devel] applied: [PATCH guest-common v11 1/1] GuestHelpers: add tag related helpers
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Nov 17 13:12:32 CET 2022
Am 16/11/2022 um 16:48 schrieb Dominik Csapak:
> 'get_allowed_tags':
> returns the allowed tags for the given user
>
> 'assert_tag_permissions'
> helper to check permissions for tag setting/updating/deleting
> for both container and qemu-server
>
> gets the list of allowed tags from the DataCenterConfig and the current
> user permissions, and checks for each tag that is added/removed if
> the user has permissions to modify it
>
> 'normal' tags require 'VM.Config.Options' on '/vms/<vmid>', but not
> allowed tags (either limited with 'user-tag-access' or
> 'privileged-tags' in the datacenter.cfg) requrie 'Sys.Modify' on '/'
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> debian/control | 3 +-
> src/PVE/GuestHelpers.pm | 99 ++++++++++++++++++++++++++++++++++++++++-
> 2 files changed, 100 insertions(+), 2 deletions(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list