summaryrefslogtreecommitdiff
path: root/tests/specs/run/ld_preload/__test__.jsonc
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/__test__.jsonc
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/__test__.jsonc')
-rw-r--r--tests/specs/run/ld_preload/__test__.jsonc14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/specs/run/ld_preload/__test__.jsonc b/tests/specs/run/ld_preload/__test__.jsonc
new file mode 100644
index 000000000..f3a9b26bc
--- /dev/null
+++ b/tests/specs/run/ld_preload/__test__.jsonc
@@ -0,0 +1,14 @@
+{
+ "tests": {
+ "env_arg": {
+ "args": "run --allow-run=echo env_arg.ts",
+ "output": "env_arg.out",
+ "exitCode": 1
+ },
+ "set_with_allow_env": {
+ "args": "run --allow-run=echo --allow-env set_with_allow_env.ts",
+ "output": "set_with_allow_env.out",
+ "exitCode": 1
+ }
+ }
+}