]> git.proxmox.com Git - pve-access-control.git/commitdiff
add more privileges, improve docs
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Feb 2012 12:26:21 +0000 (13:26 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Feb 2012 12:26:21 +0000 (13:26 +0100)
PVE/AccessControl.pm
README

index 86c15fdf1b4d16b0b2c6b39c856796ef425621a4..47b010f98eb0b00bfe5c89bc76c4ac92ff7f4a0b 100644 (file)
@@ -548,9 +548,16 @@ my $privgroups = {
     VM => {
        root => [],
        admin => [           
     VM => {
        root => [],
        admin => [           
-           'VM.Modify', 
+           'VM.Config.Disk', 
+           'VM.Config.CDROM', 
+           'VM.Config.CPU', 
+           'VM.Config.Memory', 
+           'VM.Config.Network', 
+           'VM.Config.HWType',
+           'VM.Config.Options', # covers all other things 
            'VM.Allocate', 
            'VM.Migrate',
            'VM.Allocate', 
            'VM.Migrate',
+           'VM.Monitor', 
        ],
        user => [
            'VM.Console', 
        ],
        user => [
            'VM.Console', 
diff --git a/README b/README
index a2ec7f1ba9117a91fa55be735064bbfc0c62ec71..2619720b2313d5f2a20dd80e1f89593c79838a16 100644 (file)
--- a/README
+++ b/README
@@ -64,6 +64,13 @@ group:
        user_list: list of login names
        comment: a more verbose description
 
        user_list: list of login names
        comment: a more verbose description
 
+pool:
+
+       pool_name: the name of the pool
+       comment: a more verbose description
+       vm_list: list of VMs associated with the pool
+       storage_list: list of storage IDs associated with the pool
+
 privileges: 
 
        defines rights required to execute actions or read
 privileges: 
 
        defines rights required to execute actions or read
@@ -73,8 +80,20 @@ privileges:
        VM.Migrate: migrate VM to alternate server on cluster
        VM.PowerMgmt: power management (start, stop, reset, shutdown, ...)
        VM.Console: console access to VM
        VM.Migrate: migrate VM to alternate server on cluster
        VM.PowerMgmt: power management (start, stop, reset, shutdown, ...)
        VM.Console: console access to VM
+       VM.Monitor: access to VM monitor (kvm)
        VM.Audit: view VM config
        VM.Audit: view VM config
-       VM.Modify: modify VM config
+
+       VM.Config.XXX: modify VM config
+
+         VM.Config.Disk: add/modify/delete Disks 
+         VM.Config.CDROM: eject/change CDROM
+         VM.Config.CPU: modify CPU settings
+         VM.Config.Memory: modify Memory settings
+         VM.Config.Network: add/modify/delete Network devices
+         VM.Config.HWType: modify emulated HW type
+         VM.Config.Options: modify any other VM configuration 
+
+       Pool.Allocate: create/remove/modify a pool.
 
        Datastore.Allocate: create/remove/modify a data store.
        Datastore.AllocateSpace: allocate space on a datastore
 
        Datastore.Allocate: create/remove/modify a data store.
        Datastore.AllocateSpace: allocate space on a datastore
@@ -93,14 +112,12 @@ privileges:
 
        VM.Create: create new VM to server inventory
        VM.Remove: remove VM from inventory
 
        VM.Create: create new VM to server inventory
        VM.Remove: remove VM from inventory
-       VM.MemoryModify: modify memory associated with VM
        VM.AddNewDisk: add new disk to VM
        VM.AddExistingDisk: add an existing disk to VM
        VM.DiskModify: modify disk space for associated VM
        VM.UseRawDevice: associate a raw device with VM
        VM.PowerOn: power on VM
        VM.PowerOff: power off VM
        VM.AddNewDisk: add new disk to VM
        VM.AddExistingDisk: add an existing disk to VM
        VM.DiskModify: modify disk space for associated VM
        VM.UseRawDevice: associate a raw device with VM
        VM.PowerOn: power on VM
        VM.PowerOff: power off VM
-       VM.ConfigureCD: assign a device/image file to VM
        VM.CpuModify: modify number of CPUs associated with VM
        VM.CpuCyclesModify: modify CPU cycles for VM
        VM.NetworkAdd: add network device to VM
        VM.CpuModify: modify number of CPUs associated with VM
        VM.CpuCyclesModify: modify CPU cycles for VM
        VM.NetworkAdd: add network device to VM