diff --git a/source/common/filesystem/posix/filesystem_impl.cc b/source/common/filesystem/posix/filesystem_impl.cc index d9714ce37b9b..b10aa7bdee18 100644 --- a/source/common/filesystem/posix/filesystem_impl.cc +++ b/source/common/filesystem/posix/filesystem_impl.cc @@ -339,9 +339,13 @@ bool InstanceImplPosix::illegalPath(const std::string& path) { // platform in the future, growing these or relaxing some constraints (e.g. // there are valid reasons to go via /proc for file paths). // TODO(htuch): Optimize this as a hash lookup if we grow any further. - if (absl::StartsWith(canonical_path.return_value_, "/dev") || - absl::StartsWith(canonical_path.return_value_, "/sys") || - absl::StartsWith(canonical_path.return_value_, "/proc")) { + // It will allow the canonical path such as /sysroot/ which is not the + // default reserved directories (/dev, /sys, /proc) + if (absl::StartsWith(canonical_path.return_value_, "/dev/") || + absl::StartsWith(canonical_path.return_value_, "/sys/") || + absl::StartsWith(canonical_path.return_value_, "/proc/") || + canonical_path.return_value_ == "/dev" || canonical_path.return_value_ == "/sys" || + canonical_path.return_value_ == "/proc") { return true; } return false; diff --git a/tools/base/requirements.txt b/tools/base/requirements.txt index 412d81692d14..df5c9e56a074 100644 --- a/tools/base/requirements.txt +++ b/tools/base/requirements.txt @@ -1642,7 +1642,7 @@ zstandard==0.22.0 \ # via envoy-base-utils # The following packages are considered to be unsafe in a requirements file: -setuptools==70.0.0 \ - --hash=sha256:54faa7f2e8d2d11bcd2c07bed282eef1046b5c080d1c32add737d7b5817b1ad4 \ - --hash=sha256:f211a66637b8fa059bb28183da127d4e86396c991a942b028c6650d4319c3fd0 +setuptools==70.1.1 \ + --hash=sha256:937a48c7cdb7a21eb53cd7f9b59e525503aa8abaf3584c730dc5f7a5bec3a650 \ + --hash=sha256:a58a8fde0541dab0419750bcc521fbdf8585f6e5cb41909df3a472ef7b81ca95 # via -r requirements.in diff --git a/tools/spelling/spelling_dictionary.txt b/tools/spelling/spelling_dictionary.txt index 4c8efee1ae6c..670192ef17d7 100644 --- a/tools/spelling/spelling_dictionary.txt +++ b/tools/spelling/spelling_dictionary.txt @@ -1349,6 +1349,7 @@ sys syscall syscalls sysctl +sysroot sz tchar tchars