5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-08 21:17:52 +03:00
pve-guest-common/src
Dominik Csapak 2b00f6236d GuestHelpers: add tag related helpers
'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@proxmox.com>
2022-11-17 10:24:33 +01:00
..
PVE GuestHelpers: add tag related helpers 2022-11-17 10:24:33 +01:00
tests buildsys: split packaging and source build-systems 2021-05-09 20:10:14 +02:00
Makefile add VZDump::JobBase, split out from manager 2022-11-12 16:21:35 +01:00