From b164038c863dd226a4c943148d94c3b14df8c550 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Mon, 6 Mar 2023 13:45:07 -0300 Subject: permission: fix spawnSync permission check Fixes: https://github.com/nodejs-private/node-private/issues/394 Signed-off-by: RafaelGSS PR-URL: https://github.com/nodejs/node/pull/46975 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau --- benchmark/fs/readfile-permission-enabled.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'benchmark') diff --git a/benchmark/fs/readfile-permission-enabled.js b/benchmark/fs/readfile-permission-enabled.js index 3053d5aa08..08ac831cd7 100644 --- a/benchmark/fs/readfile-permission-enabled.js +++ b/benchmark/fs/readfile-permission-enabled.js @@ -19,7 +19,12 @@ const bench = common.createBenchmark(main, { len: [1024, 16 * 1024 * 1024], concurrent: [1, 10], }, { - flags: ['--experimental-permission', '--allow-fs-read=*', '--allow-fs-write=*'], + flags: [ + '--experimental-permission', + '--allow-fs-read=*', + '--allow-fs-write=*', + '--allow-child-process', + ], }); function main({ len, duration, concurrent, encoding }) { -- cgit v1.2.1