]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: fix handling of systemd activation wrt socket ordering
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Jun 2019 16:27:04 +0000 (17:27 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 12 Jul 2019 15:55:40 +0000 (16:55 +0100)
commite2f012b8f0d2ba2f2355a8bbd961527836e11732
tree1aa3447ed3f8c99b64134914b486d6c98cbfd495
parente9095c328a2f0aa13969ddc8ef6e397388fecaf5
remote: fix handling of systemd activation wrt socket ordering

The current libvirtd code for systemd socket activation assumes socket
FDs are passed in the order unix-rw, unix-ro, unix-admin.  There is in
fact no ordering guarantee made by systemd. Applications are expected
to check the address or name associated with each FD to figure out its
identity.

This rewrites libvirtd to make use of the new systemd activation APIs
to make it robust wrt socket ordering changes.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_daemon.c
src/rpc/virnetserverservice.c