OSDN Git Service

stream: Don't crash when node permission is denied
authorKevin Wolf <kwolf@redhat.com>
Tue, 9 Mar 2021 17:34:51 +0000 (18:34 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Mar 2021 09:15:06 +0000 (10:15 +0100)
commit1bf26076d677f693dd99a6e8ef2eca69b842d873
treee070a9cc13c2c02e0a1a3c990db6f2b7da9fb406
parente21577707152c10017dcf4d3340e83b100057355
stream: Don't crash when node permission is denied

The image streaming block job restricts shared permissions of the nodes
it accesses. This can obviously fail when other users already got these
permissions. &error_abort is therefore wrong and can crash. Handle these
errors gracefully and just fail starting the block job.

Reported-by: Nini Gu <ngu@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210309173451.45152-1-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c
tests/qemu-iotests/tests/qsd-jobs
tests/qemu-iotests/tests/qsd-jobs.out