[lxc-devel] [PATCH v2] lxc-busybox: make securityfs bind-mount optional
Stéphane Graber
stgraber at ubuntu.com
Mon Dec 9 19:57:40 UTC 2013
On Mon, Dec 09, 2013 at 02:10:15PM +0200, Bogdan Purcareata wrote:
> Prevent container start from failing when running Busybox containers on hosts without securityfs support.
>
> Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> templates/lxc-busybox.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
> index 97614c6..8232334 100644
> --- a/templates/lxc-busybox.in
> +++ b/templates/lxc-busybox.in
> @@ -292,7 +292,7 @@ EOF
> echo "lxc.mount.entry = /$dir $dir none ro,bind 0 0" >> $path/config
> fi
> done
> - echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind 0 0" >>$path/config
> + echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0" >>$path/config
> echo "lxc.mount.auto = proc:mixed sys" >>$path/config
> }
>
> --
> 1.7.11.7
>
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131209/70970341/attachment.pgp>
More information about the lxc-devel
mailing list