Commit 326afe51 by Cedric Le Goater Committed by Daniel Lezcano

lxc-attach: fix access permissions of /proc/$pid/ns

parent 4b85e81b
......@@ -91,7 +91,7 @@ int lxc_attach(pid_t pid)
int i;
sprintf(path, "/proc/%d/ns", pid);
if (access(path, R_OK)) {
if (access(path, X_OK)) {
ERROR("Does this kernel version support 'attach' ?");
return -1;
}
......
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