From: Cédric Bosdonnat Date: Thu, 20 Nov 2014 10:31:44 +0000 (+0100) Subject: virt-aa-helper wasn't running virErrorInitialize X-Git-Tag: CVE-2014-8135~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22221233d0c2fd2c2d41b7527fe2bec13295a427;p=thirdparty%2Flibvirt.git virt-aa-helper wasn't running virErrorInitialize This turns out to be working by magic but needs to be fixed. --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index e4d9a76045..81f9f40631 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -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)