mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
21bfd1e9b9
Currently we accept and correctly parse this chardev XML: ... <channel type='tcp'> <source mode='connect'/> <source mode='bind' host='localhost'/> <source service='4567'/> <target type='virtio' name='test'/> </channel> ... The parsed formatted XML is: ... <channel type='tcp'> <source mode='connect' host='localhost' service='4567'/> <target type='virtio' name='test'/> </channel> ... That behavior is super wrong and should not be allowed. If you notice the current parse takes the first found attribute and uses that value, so for example from the "<source mode='bind' host='localhost'/>" only the "host" attribute is used. It works the same way for all possible attributes that we are able to parse for source element. This patch enforces providing only one source element for all character devices, only for UDP type we allow to provide two source elements since you can specify both modes. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> |
||
---|---|---|
.. | ||
generic-chardev-tcp-missing-host.xml | ||
generic-chardev-tcp-missing-service.xml | ||
generic-chardev-tcp-multiple-source.xml | ||
generic-chardev-tcp.xml | ||
generic-chardev-udp-missing-connect-service.xml | ||
generic-chardev-udp-multiple-source.xml | ||
generic-chardev-udp.xml | ||
generic-chardev-unix-redirdev-missing-path.xml | ||
generic-chardev-unix-rng-missing-path.xml | ||
generic-chardev-unix-smartcard-missing-path.xml | ||
generic-chardev-unix.xml | ||
generic-cpu-cache-disable.xml | ||
generic-cpu-cache-emulate.xml | ||
generic-cpu-cache-passthrough.xml | ||
generic-disk-network-http.xml | ||
generic-disk-virtio.xml | ||
generic-graphics-listen-back-compat-mismatch.xml | ||
generic-graphics-listen-back-compat.xml | ||
generic-graphics-vnc-autoport-no.xml | ||
generic-graphics-vnc-listen-attr-only.xml | ||
generic-graphics-vnc-listen-element-minimal.xml | ||
generic-graphics-vnc-listen-element-with-address.xml | ||
generic-graphics-vnc-manual-port.xml | ||
generic-graphics-vnc-minimal.xml | ||
generic-graphics-vnc-socket-attr-listen-address.xml | ||
generic-graphics-vnc-socket-attr-listen-socket-mismatch.xml | ||
generic-graphics-vnc-socket-attr-listen-socket.xml | ||
generic-graphics-vnc-socket-listen.xml | ||
generic-graphics-vnc-socket.xml | ||
generic-name-slash-fail.xml | ||
generic-perf.xml | ||
generic-vcpus-individual.xml |