qemu-e2k/docs/interop
Albert Esteve 043e127a12 hw/virtio: check owner for removing objects
Shared objects lack spoofing protection.
For VHOST_USER_BACKEND_SHARED_OBJECT_REMOVE messages
received by the vhost-user interface, any backend was
allowed to remove entries from the shared table just
by knowing the UUID. Only the owner of the entry
shall be allowed to removed their resources
from the table.

To fix that, add a check for all
*SHARED_OBJECT_REMOVE messages received.
A vhost device can only remove TYPE_VHOST_DEV
entries that are owned by them, otherwise skip
the removal, and inform the device that the entry
has not been removed in the answer.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20240219143423.272012-2-aesteve@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-03-12 17:56:55 -04:00
..
barrier.rst
bitmaps.rst docs/interop/bitmaps: Clean up a reference to qemu-qmp-ref 2024-01-26 07:04:53 +01:00
dbus-display.rst
dbus-vmstate.rst
dbus.rst
firmware.json docs/interop/firmware.json: Fix doc for FirmwareFlashMode 2024-03-09 19:17:01 +01:00
index.rst
live-block-operations.rst
nbd.txt nbd/server: Add FLAG_PAYLOAD support to CMD_BLOCK_STATUS 2023-10-05 11:02:08 -05:00
parallels.txt
pr-helper.rst
prl-xml.txt docs: correct typos 2024-02-20 22:20:48 +03:00
qcow2.txt
qed_spec.txt
qemu-ga-ref.rst
qemu-ga.rst guest-agent: improve help for --allow-rpcs and --block-rpcs 2024-01-30 12:10:37 +02:00
qemu-qmp-ref.rst
qemu-storage-daemon-qmp-ref.rst
qmp-spec.rst
vhost-user-gpu.rst
vhost-user.json
vhost-user.rst hw/virtio: check owner for removing objects 2024-03-12 17:56:55 -04:00
vhost-vdpa.rst
virtio-balloon-stats.rst
vnc-ledstate-pseudo-encoding.rst