diff --git a/runtime/tracer/forbid_paths.c b/runtime/tracer/forbid_paths.c index 7a222db50..45c29d5bf 100644 --- a/runtime/tracer/forbid_paths.c +++ b/runtime/tracer/forbid_paths.c @@ -21,7 +21,7 @@ static int allow_path(const char *path, const int ruleset_fd, bool shallow) { struct stat statbuf; path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); - if (path_beneath.parent_fd < 0) { + if (path_beneath.parent_fd < 0 && errno != ENOENT) { fprintf(stderr, "Failed to open \"%s\": %s\n", path, strerror(errno)); return -1; }