]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
api: create_vm: check serial and usb permissions
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 5 Mar 2021 10:29:20 +0000 (11:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Mar 2021 20:15:23 +0000 (21:15 +0100)
commit0761ee013f82861a664efd8a7ac9b43964de65f9
treec45cf9e2704bc35af5ae5ed621455c7d2d69daa5
parent4dd1e83c7584670cb32dd39d85ac08fd1951c20a
api: create_vm: check serial and usb permissions

The existing check_vm_modify_config_perm doesn't do so anymore, but
the check only got re-added to the modify/delete paths. See commits
165be267ebff3f614cc6b56bbb594ef4d456a4e9 and
e30f75c571a6a678f8f1f3dfb2dee1b622b49185 for context.

In the future, it might make sense to generalise the
check_vm_modify_config_perm and have it not only take keys, but both
new and old values, and use that generalised function everywhere.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm