mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 11:58:55 +00:00
add VM.Replicate privilege
Currently, guest replication is guarded with Datastore.Allocate on '/storage', which is rather surprising. One could require Datastore.AllocateSpace on all involved storages, but having a dedicated privilege like for other VM operations like migration and snapshot seems to be more natural. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
800477912c
commit
5f7544fea5
@ -1061,6 +1061,7 @@ my $privgroups = {
|
|||||||
'VM.Clone',
|
'VM.Clone',
|
||||||
'VM.GuestAgent.Unrestricted',
|
'VM.GuestAgent.Unrestricted',
|
||||||
'VM.Migrate',
|
'VM.Migrate',
|
||||||
|
'VM.Replicate',
|
||||||
'VM.Snapshot',
|
'VM.Snapshot',
|
||||||
'VM.Snapshot.Rollback',
|
'VM.Snapshot.Rollback',
|
||||||
],
|
],
|
||||||
|
@ -66,8 +66,8 @@ check_permission(
|
|||||||
. 'VM.Allocate,VM.Audit,VM.Backup,VM.Clone,VM.Config.CDROM,VM.Config.CPU,VM.Config.Cloudinit,'
|
. 'VM.Allocate,VM.Audit,VM.Backup,VM.Clone,VM.Config.CDROM,VM.Config.CPU,VM.Config.Cloudinit,'
|
||||||
. 'VM.Config.Disk,VM.Config.HWType,VM.Config.Memory,VM.Config.Network,VM.Config.Options,'
|
. 'VM.Config.Disk,VM.Config.HWType,VM.Config.Memory,VM.Config.Network,VM.Config.Options,'
|
||||||
. 'VM.Console,VM.GuestAgent.Audit,VM.GuestAgent.FileRead,VM.GuestAgent.FileSystemMgmt,'
|
. 'VM.Console,VM.GuestAgent.Audit,VM.GuestAgent.FileRead,VM.GuestAgent.FileSystemMgmt,'
|
||||||
. 'VM.GuestAgent.FileWrite,VM.GuestAgent.Unrestricted,VM.Migrate,VM.PowerMgmt,VM.Snapshot,'
|
. 'VM.GuestAgent.FileWrite,VM.GuestAgent.Unrestricted,VM.Migrate,VM.PowerMgmt,VM.Replicate,'
|
||||||
. 'VM.Snapshot.Rollback',
|
. 'VM.Snapshot,VM.Snapshot.Rollback',
|
||||||
);
|
);
|
||||||
# Administrator -> Permissions.Modify!
|
# Administrator -> Permissions.Modify!
|
||||||
check_permission(
|
check_permission(
|
||||||
@ -86,8 +86,8 @@ check_permission(
|
|||||||
. 'VM.Allocate,VM.Audit,VM.Backup,VM.Clone,VM.Config.CDROM,VM.Config.CPU,VM.Config.Cloudinit,'
|
. 'VM.Allocate,VM.Audit,VM.Backup,VM.Clone,VM.Config.CDROM,VM.Config.CPU,VM.Config.Cloudinit,'
|
||||||
. 'VM.Config.Disk,VM.Config.HWType,VM.Config.Memory,VM.Config.Network,VM.Config.Options,'
|
. 'VM.Config.Disk,VM.Config.HWType,VM.Config.Memory,VM.Config.Network,VM.Config.Options,'
|
||||||
. 'VM.Console,VM.GuestAgent.Audit,VM.GuestAgent.FileRead,VM.GuestAgent.FileSystemMgmt,'
|
. 'VM.Console,VM.GuestAgent.Audit,VM.GuestAgent.FileRead,VM.GuestAgent.FileSystemMgmt,'
|
||||||
. 'VM.GuestAgent.FileWrite,VM.GuestAgent.Unrestricted,VM.Migrate,VM.PowerMgmt,VM.Snapshot,'
|
. 'VM.GuestAgent.FileWrite,VM.GuestAgent.Unrestricted,VM.Migrate,VM.PowerMgmt,VM.Replicate,'
|
||||||
. 'VM.Snapshot.Rollback',
|
. 'VM.Snapshot,VM.Snapshot.Rollback',
|
||||||
);
|
);
|
||||||
|
|
||||||
check_roles('max@pve', '/vms/200', 'storage_manager');
|
check_roles('max@pve', '/vms/200', 'storage_manager');
|
||||||
|
Loading…
Reference in New Issue
Block a user