]> git.proxmox.com Git - qemu-server.git/commitdiff
require 'VM.Config.HWType' priviledge to change new smbios1 option
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jun 2014 09:17:10 +0000 (11:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jun 2014 09:17:10 +0000 (11:17 +0200)
PVE/API2/Qemu.pm

index 5ba2e73692a4c201446464242858a60ab835bb33..8930313361b720b74ae23a908af009a62caaf9a9 100644 (file)
@@ -192,7 +192,7 @@ my $check_vm_modify_config_perm = sub {
        } elsif ($opt eq 'args' || $opt eq 'lock') {
            die "only root can set '$opt' config\n";
        } elsif ($opt eq 'cpu' || $opt eq 'kvm' || $opt eq 'acpi' || $opt eq 'machine' ||
-                $opt eq 'vga' || $opt eq 'watchdog' || $opt eq 'tablet') {
+                $opt eq 'vga' || $opt eq 'watchdog' || $opt eq 'tablet' || $opt eq 'smbios1') {
            $rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Config.HWType']);
        } elsif ($opt =~ m/^net\d+$/) {
            $rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Config.Network']);