From: Christian Brauner Date: Fri, 5 Aug 2016 22:46:25 +0000 (+0200) Subject: bindings: caller_may_see_dir() X-Git-Tag: lxcfs-3.0.0.beta1~50^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f7bff4262ae6ebf0cc476822753d8be44b42886e;p=mirror_lxcfs.git bindings: caller_may_see_dir() Signed-off-by: Christian Brauner --- diff --git a/bindings.c b/bindings.c index 7f15cad..fb905c1 100644 --- a/bindings.c +++ b/bindings.c @@ -1357,7 +1357,7 @@ static bool caller_may_see_dir(pid_t pid, const char *contrl, const char *cg) char *c2, *task_cg; size_t target_len, task_len; - if (strcmp(cg, "/") == 0) + if (strcmp(cg, "/") == 0 || strcmp(cg, "./") == 0) return true; c2 = get_pid_cgroup(pid, contrl);