Re: [PATCH] daemon: Move TLS initialization to virInitialize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 24, 2011 at 08:45:37AM -0600, Eric Blake wrote:
> On 08/24/2011 08:19 AM, Michal Privoznik wrote:
> >My previous patch 74c75671331d284e1f777f9692b72e9737520bf0
> >introduced a regression by removing TLS initialization from client.
> >---
> >  daemon/libvirtd.c |    1 -
> >  src/libvirt.c     |    3 +++
> >  2 files changed, 3 insertions(+), 1 deletions(-)
> >
> >diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
> >index 5969a82..8f04a99 100644
> >--- a/daemon/libvirtd.c
> >+++ b/daemon/libvirtd.c
> >@@ -1516,7 +1516,6 @@ int main(int argc, char **argv) {
> >      virHookCall(VIR_HOOK_DRIVER_DAEMON, "-", VIR_HOOK_DAEMON_OP_START,
> >                  0, "start", NULL);
> >
> >-    virNetTLSInit();
> 
> This looks odd - having the tls init in a 3rd party call via
> virInitialize, but the tls de-init is still directly in libvirtd.
> 
> Either we need a virDeinitialize which does the virNetTLSDeinit, and
> libvirtd calls virDeinitialize; or you can just drop all calls to
> virNetTLSDeinit.

deinitialize is really a waste of time, or even wrong. Some
other libraries libvirt links to might also use TLS, so we
can't ever be sure it is safe to deinitialize. Even in the
daemon i think it is pretty pointless.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]