attach: remove obsolete namespace check

We're not going to support kernel without namespaces anyway. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent ee142207
...@@ -1042,10 +1042,6 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function, ...@@ -1042,10 +1042,6 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
struct lxc_terminal terminal; struct lxc_terminal terminal;
struct lxc_conf *conf; 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) if (!container)
return ret_set_errno(-1, EINVAL); return ret_set_errno(-1, EINVAL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment