catching up with fedora's specfile for 1.2.3
[libvirt.git] / libvirt-1.2.3-bypass-netns-check.patch
1 diff -ru libvirt-1.2.3/src/lxc/lxc_driver.c libvirt-1.2.3.pl/src/lxc/lxc_driver.c
2 --- libvirt-1.2.3/src/lxc/lxc_driver.c  2014-03-27 11:35:01.000000000 +0100
3 +++ libvirt-1.2.3.pl/src/lxc/lxc_driver.c       2014-04-08 12:25:03.000000000 +0200
4 @@ -1475,9 +1475,14 @@
5      const char *argv[] = {"ip", "link", "set", "lo", "netns", "-1", NULL};
6      int ip_rc;
7  
8 +    /* somehow this check fails on PL nodes
9 +       most likely related to selinux as suggested in
10 +       https://bugzilla.redhat.com/show_bug.cgi?id=1050210
11 +       
12      if (virRun(argv, &ip_rc) < 0 ||
13          !(WIFEXITED(ip_rc) && (WEXITSTATUS(ip_rc) != 255)))
14          return 0;
15 +    */
16  
17      if (lxcContainerAvailable(LXC_CONTAINER_FEATURE_NET) < 0)
18          return 0;