Pure helper: is `path` equal to `/sandbox` or a descendant of it?
(path: &str)
| 878 | |
| 879 | /// Pure helper: is `path` equal to `/sandbox` or a descendant of it? |
| 880 | fn is_under_sandbox_workspace(path: &str) -> bool { |
| 881 | path == SANDBOX_WORKSPACE_ROOT || path.starts_with(&format!("{SANDBOX_WORKSPACE_ROOT}/")) |
| 882 | } |
| 883 | |
| 884 | /// Resolve every symlink in `sandbox_path` on the sandbox side and refuse the |
| 885 | /// result if it lands outside `/sandbox`. |
no outgoing calls
no test coverage detected