mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-25 04:19:30 +00: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:
parent
6b8a615be2
commit
63d269d79e
@ -243,6 +243,7 @@ my $check_vm_modify_config_perm = sub {
|
|||||||
# disk checks need to be done somewhere else
|
# disk checks need to be done somewhere else
|
||||||
next if PVE::QemuServer::is_valid_drivename($opt);
|
next if PVE::QemuServer::is_valid_drivename($opt);
|
||||||
next if $opt eq 'cdrom';
|
next if $opt eq 'cdrom';
|
||||||
|
next if $opt =~ m/^unused\d+$/;
|
||||||
|
|
||||||
if ($cpuoptions->{$opt} || $opt =~ m/^numa\d+$/) {
|
if ($cpuoptions->{$opt} || $opt =~ m/^numa\d+$/) {
|
||||||
$rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Config.CPU']);
|
$rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Config.CPU']);
|
||||||
|
@ -2,6 +2,8 @@ qemu-server (4.0-80) unstable; urgency=medium
|
|||||||
|
|
||||||
* split old style pipe open call
|
* 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
|
-- Proxmox Support Team <support@proxmox.com> Thu, 09 Jun 2016 18:13:03 +0200
|
||||||
|
|
||||||
qemu-server (4.0-79) unstable; urgency=medium
|
qemu-server (4.0-79) unstable; urgency=medium
|
||||||
|
Loading…
Reference in New Issue
Block a user