mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 22:51:42 +00:00
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:
parent
1a91da6ca6
commit
63e0f402aa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user