]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
bindings: caller_may_see_dir()
authorChristian Brauner <cbrauner@suse.de>
Fri, 5 Aug 2016 22:46:25 +0000 (00:46 +0200)
committerChristian Brauner <cbrauner@suse.de>
Mon, 8 Aug 2016 18:00:43 +0000 (20:00 +0200)
Signed-off-by: Christian Brauner <cbrauner@suse.de>
bindings.c

index 7f15cade8581bb15ab606a85930f24702b0dca07..fb905c19c62daa8736e6d495e2b5dc1c1d6e7200 100644 (file)
@@ -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);