[lxc-devel] [PATCH v2] lxc-busybox: check when bind-mounting host libdirs

Serge Hallyn serge.hallyn at ubuntu.com
Wed May 15 13:58:00 UTC 2013


Quoting Bogdan Purcareata (bogdan.purcareata at freescale.com):
> The patch removes the behavior of automatically mounting /lib
> and /usr/lib, since this is duplicated a few lines below. It will
> also remove the risk of failing when one of these entries are not
> present on the host - e.g. on a 64bit machine.
> 
> Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

Thanks!

> ---
>  templates/lxc-busybox.in | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
> index cb425ec..783e8d6 100644
> --- a/templates/lxc-busybox.in
> +++ b/templates/lxc-busybox.in
> @@ -240,13 +240,6 @@ lxc.pts = 1
>  #lxc.aa_profile = unconfined
>  EOF
>  
> -if [ -d "$rootfs/lib" ]; then
> -cat <<EOF >> $path/config
> -lxc.mount.entry = /lib $rootfs/lib none ro,bind 0 0
> -lxc.mount.entry = /usr/lib $rootfs/usr/lib none ro,bind 0 0
> -EOF
> -fi
> -
>      libdirs="\
>          lib \
>          usr/lib \
> -- 
> 1.7.11.7
> 
> 
> 
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list