qemu-server/PVE
Dominik Csapak e583e372a2 fix #5574: api: fix permission check for 'spice' usb port
With the last change in the permission check, I accidentally broke the
check for 'spice' host value, since in the if/elsif/else this will fall
through to the else case which was only intended for when neither 'host'
nor 'mapping' was set.

This made 'spice' only settable by root@pam since there we return early.

To fix this, move the spice check into the 'host' branch, but only error
out in case it's not spice.

Fixes: e3971865 (enable cluster mapped USB devices for guests)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-07-22 19:37:37 +02:00
..
API2 fix #5574: api: fix permission check for 'spice' usb port 2024-07-22 19:37:37 +02:00
CLI cli: qm: increase timeout for monitor commands to 30 seconds 2024-06-11 13:56:44 +02:00
QemuServer drive: tpm: fix default version in schema 2024-07-01 10:37:48 +02:00
VZDump backup: prepare: remove outdated QEMU version check 2024-07-03 15:08:51 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm config: define machine schema as property-string 2024-04-11 10:18:27 +02:00
QemuMigrate.pm migration: handle replication: remove outdated and inaccurate check for QEMU version 2024-07-03 15:08:47 +02:00
QemuServer.pm config: net: avoid duplicate ipam entries on nic update 2024-07-22 18:38:05 +02:00
QMPClient.pm QMP client: sort commands with 10 minutes timeout alphabetically 2024-03-08 14:37:29 +01:00