]> git.proxmox.com Git - qemu-server.git/commit
add --description to systemd scope unit
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 13 May 2016 13:36:51 +0000 (15:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 14 May 2016 07:02:58 +0000 (09:02 +0200)
commit19333c9b8222cbbd981e7bcf13b91f21be0cca8c
treef4cecbc4f8b2ac1705ab6781ef15e57a423e361d
parent30983c3bac1a9b0d4d08581e9f11397639feabb9
add --description to systemd scope unit

otherwise, long kvm commands lead to systemd unit files with
very long lines, with confuses the systemd unit file parser.

apparently systemd has a length limit for unit file lines and
(line-)breaks the description string at that point. since
the rest of the description is probably not a valid key/value
pair, this leads to warnings. the default semantics of systemd-run
is to use the executed command as description unless a description
is specified explicitly.

note that this behaviour of systemd could allow an attacker
with access to the VM configuration to craft a kvm commandline
that starts or stops arbitrary systemd units.
PVE/QemuServer.pm
changelog.Debian