[lxc-devel] [PATCH] remove no-longer neeeded check from lxcapi_attach_run_waitl

Stéphane Graber stgraber at ubuntu.com
Tue Jan 21 04:49:09 UTC 2014


On Mon, Jan 20, 2014 at 11:43:35PM -0500, S.Çağlar Onur wrote:
> commit f4364484454c754ed905bfb85bd2727a0a5d0475 introduced attach
> functionality to unprivileged containers so remove this check like
> the rest of the attach functions.
> 
> Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/lxccontainer.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index c26b120..f9626a6 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -3107,11 +3107,6 @@ static int lxcapi_attach_run_waitl(struct lxc_container *c, lxc_attach_options_t
>  	if (!c)
>  		return -1;
>  
> -	if (am_unpriv()) {
> -		ERROR(NOT_SUPPORTED_ERROR, __FUNCTION__);
> -		return -1;
> -	}
> -
>  	va_start(ap, arg);
>  	argv = lxc_va_arg_list_to_argv_const(ap, 1);
>  	va_end(ap);
> -- 
> 1.8.3.2
> 
> _______________________________________________
> 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/20140120/3bfa0d98/attachment.pgp>


More information about the lxc-devel mailing list