From 32aeec9630dc91162f0408b95dd86e1c26e4c1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 11 May 2020 13:13:27 +0200 Subject: refactor: check permissions in SourceFileFetcher (#5011) This PR hot-fixes permission escapes in dynamic imports, workers and runtime compiler APIs. "permissions" parameter was added to public APIs of SourceFileFetcher and appropriate permission checks are performed during loading of local and remote files. --- cli/tests/integration_tests.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 4897422b9..61e1fca7d 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1019,6 +1019,7 @@ fn workers() { .arg("test") .arg("--reload") .arg("--allow-net") + .arg("--allow-read") .arg("--unstable") .arg("workers_test.ts") .spawn() @@ -1036,6 +1037,7 @@ fn compiler_api() { .arg("test") .arg("--unstable") .arg("--reload") + .arg("--allow-read") .arg("compiler_api_test.ts") .spawn() .unwrap() -- cgit v1.2.3