]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
remove no-longer neeeded check from lxcapi_attach_run_waitl
authorS.Çağlar Onur <caglar@10ur.org>
Tue, 21 Jan 2014 04:43:35 +0000 (23:43 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 21 Jan 2014 04:49:49 +0000 (23:49 -0500)
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@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c

index 38cf24e97896e748eb33d883893951de94975e1a..794d278124c7a32fc223fad8a5970564ef2b33d6 100644 (file)
@@ -3037,11 +3037,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);