add VM.Copy priviledge

And a new role called PVETemplateUser
This commit is contained in:
Dietmar Maurer 2013-04-29 11:40:32 +02:00
parent b78ce7c252
commit ff4b223563
2 changed files with 4 additions and 0 deletions

View File

@ -364,6 +364,7 @@ my $privgroups = {
'VM.Config.HWType',
'VM.Config.Options', # covers all other things
'VM.Allocate',
'VM.Copy',
'VM.Migrate',
'VM.Monitor',
'VM.Snapshot',
@ -457,6 +458,8 @@ sub create_roles {
$special_roles->{"PVEAuditor"}->{$p} = 1;
}
}
$special_roles->{"PVETemplateUser"} = { 'VM.Copy' => 1, 'VM.Audit' => 1 };
};
create_roles();

1
README
View File

@ -82,6 +82,7 @@ privileges:
VM.Console: console access to VM
VM.Monitor: access to VM monitor (kvm)
VM.Backup: backup/restore VMs
VM.Copy: Copy/Clone VM or VM template
VM.Audit: view VM config
VM.Config.XXX: modify VM config