The following actually seems to work.  Instead of using an overlayfs for
all of /var/lib/lxc/q1-tmp-XXXXX, it only uses the overlayfs mount for
/var/lib/lxc/q1-tmp-XXXXXX/rootfs.  That way, as per Miklos' comment,
/proc/self/fd and /proc/self/maps contents are resolved relative to the
overlayfs root the same way as relative to the container rootfs.

Won't help for userspace inside the container which does
chroot/pivot_root, but for a simple container it solves the bug for me.

** Patch added: "lxc-maps.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/959352/+attachment/3260628/+files/lxc-maps.debdiff

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

Title:
  Ephemeral containers have "/rootfs" prefix in /proc/self/maps entries

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

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

Reply via email to