d6a22feac8
- Fix potential crasher in virt-aa-helper 2222123-virt-aa-helper-crash.patch - ip link add now needs the 'name' parameter. 433b427-iplink-name.patch - Fixes for virt-sandbox-service to work: - Allow adding virt-sandbox service config to apparmor rules. c264eea-virt-aa-helper-sandbox.patch - fix symlink resolving for containers to start. 72fecf1-lxc-resolve-symlinks.patch - fix unmounting file system if it contains the source to mount. e50457d-lxc-unmount-check.patch - Remove security_driver = "none" in qemu config. This completely disabled all security drivers instead of probing them. - Changed default value of QEMU's security_default_confined to 0 to keep QEMU domains unconfined by default. OBS-URL: https://build.opensuse.org/request/show/262985 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=422
28 lines
987 B
Diff
28 lines
987 B
Diff
From 22221233d0c2fd2c2d41b7527fe2bec13295a427 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com>
|
|
Date: Thu, 20 Nov 2014 11:31:44 +0100
|
|
Subject: [PATCH 1/5] virt-aa-helper wasn't running virErrorInitialize
|
|
|
|
This turns out to be working by magic but needs to be fixed.
|
|
---
|
|
src/security/virt-aa-helper.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
Index: libvirt-1.2.10/src/security/virt-aa-helper.c
|
|
===================================================================
|
|
--- libvirt-1.2.10.orig/src/security/virt-aa-helper.c
|
|
+++ libvirt-1.2.10/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) {
|