5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-06 13:17:56 +03:00

fix unnecessary root check for unused disks

we needed root@pam rights to remove an unused disk
from a vm (instead of the correct Storage rights)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-06-10 09:26:14 +02:00 committed by Dietmar Maurer
parent 6b8a615be2
commit 63d269d79e
2 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,7 @@ my $check_vm_modify_config_perm = sub {
# disk checks need to be done somewhere else
next if PVE::QemuServer::is_valid_drivename($opt);
next if $opt eq 'cdrom';
next if $opt =~ m/^unused\d+$/;
if ($cpuoptions->{$opt} || $opt =~ m/^numa\d+$/) {
$rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Config.CPU']);

View File

@ -2,6 +2,8 @@ qemu-server (4.0-80) unstable; urgency=medium
* split old style pipe open call
* fix unnecessary root check for unused disks
-- Proxmox Support Team <support@proxmox.com> Thu, 09 Jun 2016 18:13:03 +0200
qemu-server (4.0-79) unstable; urgency=medium