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

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Cedric Le Goater 2011-04-04 17:05:47 +02:00 committed by Daniel Lezcano
parent 1a91da6ca6
commit 63e0f402aa

View File

@ -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;
}