]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: do not fail if the pid of the connecting process is not set
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 19 Nov 2014 14:54:14 +0000 (15:54 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 20 Nov 2014 13:22:50 +0000 (14:22 +0100)
commit225f483314b64d71fc5819ee7a73f3aff3e8280b
treec26e959f043f19577e8561e4a1801020c45de20f
parent5bc033e293ab85e7da62d8a6523d17ac36919126
rpc: do not fail if the pid of the connecting process is not set

getsockopt(sock->fd, SOL_SOCKET, SO_PEERCRED, ...) sets the pid to 0
when the process that opens the connection is in another container.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/rpc/virnetsocket.c