X-Git-Url: http://git.onelab.eu/?p=libvirt.git;a=blobdiff_plain;f=libvirt-1.2.3-bypass-netns-check.patch;fp=libvirt-1.2.3-bypass-netns-check.patch;h=8449f0cd82098b763213a15f83d674010704f044;hp=0000000000000000000000000000000000000000;hb=258521b65bc460cbbc0436d6f649c16bd12c246d;hpb=dc960af45b4cad1a63820e09fc167aa3e7ab1b41 diff --git a/libvirt-1.2.3-bypass-netns-check.patch b/libvirt-1.2.3-bypass-netns-check.patch new file mode 100644 index 0000000..8449f0c --- /dev/null +++ b/libvirt-1.2.3-bypass-netns-check.patch @@ -0,0 +1,18 @@ +diff -ru libvirt-1.2.3/src/lxc/lxc_driver.c libvirt-1.2.3.pl/src/lxc/lxc_driver.c +--- libvirt-1.2.3/src/lxc/lxc_driver.c 2014-03-27 11:35:01.000000000 +0100 ++++ libvirt-1.2.3.pl/src/lxc/lxc_driver.c 2014-04-08 12:25:03.000000000 +0200 +@@ -1475,9 +1475,14 @@ + const char *argv[] = {"ip", "link", "set", "lo", "netns", "-1", NULL}; + int ip_rc; + ++ /* somehow this check fails on PL nodes ++ most likely related to selinux as suggested in ++ https://bugzilla.redhat.com/show_bug.cgi?id=1050210 ++ + if (virRun(argv, &ip_rc) < 0 || + !(WIFEXITED(ip_rc) && (WEXITSTATUS(ip_rc) != 255))) + return 0; ++ */ + + if (lxcContainerAvailable(LXC_CONTAINER_FEATURE_NET) < 0) + return 0;