Comment 52 for bug 959352

Serge Hallyn (serge-hallyn) wrote :

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.