]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-aa-helper wasn't running virErrorInitialize
authorCédric Bosdonnat <cbosdonnat@suse.com>
Thu, 20 Nov 2014 10:31:44 +0000 (11:31 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 25 Nov 2014 10:40:55 +0000 (11:40 +0100)
This turns out to be working by magic but needs to be fixed.

src/security/virt-aa-helper.c

index e4d9a760456a085eab89e9910c876739f95e92a6..81f9f4063155630e07512ed483937a38c3547dc8 100644 (file)
@@ -1251,6 +1251,12 @@ main(int argc, char **argv)
         exit(EXIT_FAILURE);
     }
 
+    if (virThreadInitialize() < 0 ||
+        virErrorInitialize() < 0) {
+        fprintf(stderr, _("%s: initialization failed\n"), argv[0]);
+        exit(EXIT_FAILURE);
+    }
+
     /* clear the environment */
     environ = NULL;
     if (setenv("PATH", "/sbin:/usr/sbin", 1) != 0)