]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: remove obsolete namespace check
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Jan 2021 10:39:26 +0000 (11:39 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Jan 2021 10:40:07 +0000 (11:40 +0100)
We're not going to support kernel without namespaces anyway.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 02c36dfe0a16c8cab386442cd91f6fa204249354..d2d831f3567f957e2031435f696356976cd03327 100644 (file)
@@ -1042,10 +1042,6 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
        struct lxc_terminal terminal;
        struct lxc_conf *conf;
 
-       ret = access("/proc/self/ns", X_OK);
-       if (ret)
-               return log_error_errno(-1, errno, "Does this kernel version support namespaces?");
-
        if (!container)
                return ret_set_errno(-1, EINVAL);