From: Christian Brauner Date: Fri, 29 Jan 2021 10:39:26 +0000 (+0100) Subject: attach: remove obsolete namespace check X-Git-Tag: lxc-5.0.0~313^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53bca1f3c06e00b5ca74334b6475f41888256741;p=thirdparty%2Flxc.git attach: remove obsolete namespace check We're not going to support kernel without namespaces anyway. Signed-off-by: Christian Brauner --- 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);