diff options
author | Josep Puigdemont <josep.puigdemont@enea.com> | 2014-02-10 14:09:06 +0100 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-02-11 14:29:04 -0500 |
commit | 7499d6ce015cdbd238aff2a3024e5535ece5a444 (patch) | |
tree | 721a19a241c1f1bdd4d138b2e7526f42bdfab82f | |
parent | 41101a7a51fd2a98fda57ff2493e25f96748359d (diff) | |
download | meta-virtualization-7499d6ce015cdbd238aff2a3024e5535ece5a444.tar.gz |
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>
-rw-r--r-- | recipes-containers/lxc/lxc_0.9.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-containers/lxc/lxc_0.9.0.bb b/recipes-containers/lxc/lxc_0.9.0.bb index cbe3f7a1..e1de3c73 100644 --- a/recipes-containers/lxc/lxc_0.9.0.bb +++ b/recipes-containers/lxc/lxc_0.9.0.bb | |||
@@ -26,6 +26,7 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \ | |||
26 | file://lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch \ | 26 | file://lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch \ |
27 | file://lxc-0.9.0-check-when-bind-mounting-libdirs.patch \ | 27 | file://lxc-0.9.0-check-when-bind-mounting-libdirs.patch \ |
28 | file://lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch \ | 28 | file://lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch \ |
29 | file://lxc-0.9.0-always-strdup-rootfs-mount.patch \ | ||
29 | file://lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch \ | 30 | file://lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch \ |
30 | file://lxc-0.9.0-use-susv3-head-arguments.patch \ | 31 | file://lxc-0.9.0-use-susv3-head-arguments.patch \ |
31 | file://lxc-0.9.0-configure-allow-subdir-objects.patch \ | 32 | file://lxc-0.9.0-configure-allow-subdir-objects.patch \ |