aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Le Goater <clg@fr.ibm.com>2011-04-04 17:05:47 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2011-04-06 13:37:21 +0200
commit63e0f402aa028c02d15fc5fa7066b77a45877e83 (patch)
treeb0674bd40bbd624c6c84097cf2b9842dd2fd16a9 /src
parentlxc-* tools are vulnerable for arguments with spaces (diff)
downloadlxc-63e0f402aa028c02d15fc5fa7066b77a45877e83.tar.gz
lxc-63e0f402aa028c02d15fc5fa7066b77a45877e83.tar.bz2
lxc-63e0f402aa028c02d15fc5fa7066b77a45877e83.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/lxc/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/namespace.c b/src/lxc/namespace.c
index 27b53b0..8263fe7 100644
--- a/src/lxc/namespace.c
+++ b/src/lxc/namespace.c
@@ -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;
}