]> git.pld-linux.org Git - packages/libvirt.git/blob - lxc-without-selinux.patch
- doc generator needs a version there
[packages/libvirt.git] / lxc-without-selinux.patch
1 --- libvirt-0.9.10/src/lxc/lxc_container.c~     2012-02-13 08:06:23.000000000 +0100
2 +++ libvirt-0.9.10/src/lxc/lxc_container.c      2012-03-17 20:40:10.960883236 +0100
3 @@ -501,7 +501,7 @@
4      if (pivotRoot) {
5  #if HAVE_SELINUX
6          if (getfilecon("/", &con) < 0 &&
7 -            errno != ENOTSUP) {
8 +            errno != ENOTSUP && errno != ENODATA) {
9              virReportSystemError(errno, "%s",
10                                   _("Failed to query file context on /"));
11              goto cleanup;
12 --- libvirt-0.9.10/src/lxc/lxc_controller.c~    2012-03-17 20:14:16.117479754 +0100
13 +++ libvirt-0.9.10/src/lxc/lxc_controller.c     2012-03-17 20:41:17.730886249 +0100
14 @@ -1492,7 +1492,7 @@
15  
16  #if HAVE_SELINUX
17          if (getfilecon(root->src, &con) < 0 &&
18 -            errno != ENOTSUP) {
19 +            errno != ENOTSUP && errno != ENODATA) {
20              virReportSystemError(errno,
21                                   _("Failed to query file context on %s"),
22                                   root->src);
This page took 0.04365 seconds and 3 git commands to generate.