From 53bca1f3c06e00b5ca74334b6475f41888256741 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 29 Jan 2021 11:39:26 +0100 Subject: [PATCH] attach: remove obsolete namespace check We're not going to support kernel without namespaces anyway. Signed-off-by: Christian Brauner --- src/lxc/attach.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 02c36dfe0..d2d831f35 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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); -- 2.47.2