From f7bff4262ae6ebf0cc476822753d8be44b42886e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 6 Aug 2016 00:46:25 +0200 Subject: [PATCH] bindings: caller_may_see_dir() Signed-off-by: Christian Brauner --- bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2