Home
last modified time | relevance | path

Searched hist:"30 bdb3c56ddd911ab2b1629faa4ce6e883b80e2a" (Results 1 – 2 of 2) sorted by relevance

/qemu/tests/unit/
H A Dtest-util-sockets.c30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a Fri Dec 22 11:08:49 UTC 2017 Daniel P. Berrange <berrange@redhat.com> sockets: check that the named file descriptor is a socket

The SocketAddress struct has an "fd" type, which references the name of a
file descriptor passed over the monitor using the "getfd" command. We
currently blindly assume the FD is a socket, which can lead to hard to
diagnose errors later. This adds an explicit check that the FD is actually
a socket to improve the error diagnosis.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
/qemu/util/
H A Dqemu-sockets.c30bdb3c56ddd911ab2b1629faa4ce6e883b80e2a Fri Dec 22 11:08:49 UTC 2017 Daniel P. Berrange <berrange@redhat.com> sockets: check that the named file descriptor is a socket

The SocketAddress struct has an "fd" type, which references the name of a
file descriptor passed over the monitor using the "getfd" command. We
currently blindly assume the FD is a socket, which can lead to hard to
diagnose errors later. This adds an explicit check that the FD is actually
a socket to improve the error diagnosis.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>