summaryrefslogtreecommitdiff
path: root/tests/specs/run/ld_preload/set_with_allow_env.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-27 22:03:09 -0400
committerGitHub <noreply@github.com>2024-08-27 22:03:09 -0400
commit1a6fd38f2f7b016714ec313ce234fd5356aa956a (patch)
treef6452c1f7f5939ff12dc4a8b99890507a4079a63 /tests/specs/run/ld_preload/set_with_allow_env.ts
parentb1b72a8a4943f9c40e253f243f9b77abf67b3faf (diff)
fix(permissions): disallow launching subprocess with LD_PRELOAD env var without full run permissions (#25221)
Ref https://github.com/denoland/deno/pull/25215 Closes https://github.com/denoland/deno/issues/11964
Diffstat (limited to 'tests/specs/run/ld_preload/set_with_allow_env.ts')
-rw-r--r--tests/specs/run/ld_preload/set_with_allow_env.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/specs/run/ld_preload/set_with_allow_env.ts b/tests/specs/run/ld_preload/set_with_allow_env.ts
new file mode 100644
index 000000000..9530f4478
--- /dev/null
+++ b/tests/specs/run/ld_preload/set_with_allow_env.ts
@@ -0,0 +1,3 @@
+Deno.env.set("LD_PRELOAD", "./libpreload.so");
+
+const output = new Deno.Command("echo").spawn();