Same problem here (in my case the host is an x86_64 Fedora 22 box and
the Docker container is running Precise); note that *anything* that
tries to update SELinux context will fail due to the Docker-unaware
libselinux. This includes a simple "cp -a". Since "cp -a" appears to be
used somewhere deep inside dh_install, this breaks package building in a
Precise Docker container. Since that's what I use my Docker containers
for, this is something of a deal breaker for me!

Looks like the specific patch mentioned above is
libselinux-2.0.94_enabled.patch from
http://vault.centos.org/6.6/centosplus/Source/SPackages/libselinux-2.0.94-5.3.0.1.el6.centos.plus.src.rpm
and something like that patch should probably work its way into the
Precise package. (I tried to build a package with the patch to test this
for myself but dh_install failed, see above ;)

My temporary workaround in the meantime was to simply replace the
Precise libselinux1 package with that from Trusty. Frankly I'm surprised
that worked but it does appear to be binary compatible. i.e. my Precise
Dockerfile includes the line

RUN wget
http://mirrors.kernel.org/ubuntu/pool/main/libs/libselinux/libselinux1_2.2.2-1_amd64.deb
&& dpkg -i libselinux1_2.2.2-1_amd64.deb && rm -f
libselinux1_2.2.2-1_amd64.deb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1424795

Title:
  Old libselinux in Precise breaks things in Docker on SELinux-enabled
  host

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libselinux/+bug/1424795/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to