From 63e0f402aa028c02d15fc5fa7066b77a45877e83 Mon Sep 17 00:00:00 2001 From: Cedric Le Goater Date: Mon, 4 Apr 2011 17:05:47 +0200 Subject: [PATCH] lxc-attach: fix access permissions of /proc/$pid/ns Signed-off-by: Cedric Le Goater Signed-off-by: Daniel Lezcano --- src/lxc/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }