qemu-server/PVE
Leo Nunner f5a88e9870 fix #4321: properly check cloud-init drive permissions
The process for editing Cloud-init drives checked for inconsistent
permissions: for adding, the VM.Config.Disk permission was needed, while
the VM.Config.CDROM permission was needed to remove a drive. The regex
in drive_is_cloudinit needed to be adapted since the drive names have
different formats before/after they are actually generated.

Due to the regex letting names fall through before, Cloud-init drives
were being checked as disks, even though they are actually treated as
CDROM drives. Due to this, it makes more sense to check for
VM.Config.CDROM instead, while also requiring VM.Config.Cloudinit, since
generating a Cloud-init drive already generates default values that are
passed to the VM.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
2022-11-17 08:10:28 +01:00
..
API2 fix #4321: properly check cloud-init drive permissions 2022-11-17 08:10:28 +01:00
CLI api2: add cloudinit_update 2022-11-08 17:31:59 +01:00
QemuServer fix #4321: properly check cloud-init drive permissions 2022-11-17 08:10:28 +01:00
VZDump vzdump : skip special:cloudinit section 2022-11-08 17:23:30 +01:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm fix #4201: delete cloud-init disk on rollback 2022-11-11 19:26:16 +01:00
QemuMigrate.pm migration: cloudinit check: bump manager dependency and guard with cloudinit drive 2022-11-16 12:47:43 +01:00
QemuServer.pm don't call 'cleanup_config' the cloudinit section 2022-11-16 18:17:07 +01:00
QMPClient.pm qmp client: increase default fallback timeout to 5s 2022-09-16 13:01:45 +02:00