lxc: always strdup lxc.rootfs.mount

The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Josep Puigdemont 2014-02-10 14:09:06 +01:00 committed by Bruce Ashfield
parent 41101a7a51
commit 7499d6ce01

View File

@ -26,6 +26,7 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \
file://lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch \ file://lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch \
file://lxc-0.9.0-check-when-bind-mounting-libdirs.patch \ file://lxc-0.9.0-check-when-bind-mounting-libdirs.patch \
file://lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch \ file://lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch \
file://lxc-0.9.0-always-strdup-rootfs-mount.patch \
file://lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch \ file://lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch \
file://lxc-0.9.0-use-susv3-head-arguments.patch \ file://lxc-0.9.0-use-susv3-head-arguments.patch \
file://lxc-0.9.0-configure-allow-subdir-objects.patch \ file://lxc-0.9.0-configure-allow-subdir-objects.patch \