[lxc-devel] [PATCH] oracle: Fix running template unprivileged

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jan 15 18:27:20 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> Without this /dev/console won't exist and upstart will fail to start any
> job marking as "console output" including the rather important rcS.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

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

> ---
>  config/templates/oracle.userns.conf.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/config/templates/oracle.userns.conf.in b/config/templates/oracle.userns.conf.in
> index dec2ae8..892fa1e 100644
> --- a/config/templates/oracle.userns.conf.in
> +++ b/config/templates/oracle.userns.conf.in
> @@ -6,6 +6,7 @@ lxc.cgroup.devices.allow =
>  lxc.devttydir =
>  
>  # Extra bind-mounts for userns
> +lxc.mount.entry = /dev/console dev/console none bind,create=file 0 0
>  lxc.mount.entry = /dev/null dev/null none bind,create=file 0 0
>  lxc.mount.entry = /dev/zero dev/zero none bind,create=file 0 0
>  lxc.mount.entry = /dev/full dev/full none bind,create=file 0 0
> -- 
> 1.8.5.2
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list