From: Cedric Le Goater Date: Mon, 4 Apr 2011 15:05:47 +0000 (+0200) Subject: lxc-attach: fix access permissions of /proc/$pid/ns X-Git-Tag: lxc-0.7.5~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63e0f402aa028c02d15fc5fa7066b77a45877e83;p=thirdparty%2Flxc.git lxc-attach: fix access permissions of /proc/$pid/ns Signed-off-by: Cedric Le Goater Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/namespace.c b/src/lxc/namespace.c index 27b53b0bf..8263fe79a 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; }