node/doc/api
Rafael Gonzaga 3a0968db43
permission: ignore internalModuleStat on module loading
This improves Permission Model usage when allowing read access to
specifi modules. To achieve that, the permission model check on
internalModuleStat has been removed meaning that on module loading,
uv_fs_stat is performed on files and folders even when the permission
model is enabled. Although a uv_fs_stat is performed, reading/executing
the module will still pass by the permission model check.

Without this PR when an app tries to --allow-fs-read=./a.js
--allow-fs-read=./b.js where `a` attempt to load b, it will fails as
it reads $pwd and no permission has been given to this path.

PR-URL: https://github.com/nodejs/node/pull/55797
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2024-11-11 17:31:44 +00:00
..
addons.md doc: clarity to available addon options 2024-11-06 07:55:49 +00:00
assert.md doc: require node:process in assert doc examples 2024-07-04 19:49:38 +00:00
async_context.md 2023-04-18, Version 20.0.0 (Current) 2023-04-18 13:04:39 -03:00
async_hooks.md doc,tools: enforce use of node: prefix 2024-07-21 15:44:27 +00:00
buffer.md 2024-10-16, Version 23.0.0 (Current) 2024-10-16 11:05:01 -03:00
child_process.md doc: consistent use of word child process 2024-11-06 10:28:28 +00:00
cli.md permission: ignore internalModuleStat on module loading 2024-11-11 17:31:44 +00:00
cluster.md doc: move numCPUs require to top of file in cluster CJS example 2024-07-30 06:13:52 +00:00
console.md doc: add a note on console stream behavior 2024-11-02 12:37:09 +00:00
corepack.md doc: update pnpm link 2024-03-18 14:27:59 +00:00
crypto.md doc: remove mention of ECDH-ES in crypto.diffieHellman 2024-11-02 12:36:25 +00:00
debugger.md inspector: introduce the --inspect-wait flag 2024-05-11 18:48:30 +00:00
deprecations.md util: do not mark experimental feature as deprecated 2024-11-08 16:16:15 +00:00
dgram.md 2024-10-24, Version 23.1.0 (Current) 2024-10-24 23:26:25 +02:00
diagnostics_channel.md http: add diagnostic channel http.server.response.created 2024-11-02 13:46:20 +00:00
dns.md doc: add esm examples to node:dns 2024-08-06 18:34:19 +00:00
documentation.md doc: clarify removal of experimental API does not require a deprecation 2024-11-08 13:02:49 +00:00
domain.md doc: fix typos 2023-04-23 13:34:08 +00:00
embedding.md doc: improve c++ embedder API doc 2024-11-01 03:43:53 +00:00
errors.md 2024-10-16, Version 22.10.0 (Current) 2024-10-17 00:34:53 +02:00
esm.md 2024-10-16, Version 23.0.0 (Current) 2024-10-16 11:05:01 -03:00
events.md doc: consolidate history table of CustomEvent 2024-11-09 02:47:32 +00:00
fs.md fs: make dirent.path writable 2024-10-28 08:33:39 +00:00
globals.md doc: consolidate history table of CustomEvent 2024-11-09 02:47:32 +00:00
http2.md 2024-10-16, Version 22.10.0 (Current) 2024-10-17 00:34:53 +02:00
http.md doc: fix the return type of outgoingMessage.setHeaders() 2024-10-11 13:03:35 +00:00
https.md doc: add esm examples to node:https 2024-08-19 13:52:40 +00:00
index.md module: add --experimental-strip-types 2024-07-24 16:30:06 +00:00
inspector.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
intl.md doc: improve documentation about ICU data fallback 2023-09-22 13:24:23 +00:00
module.md doc: move typescript support to active development 2024-10-27 14:35:11 +00:00
modules.md 2024-10-16, Version 23.0.0 (Current) 2024-10-16 11:05:01 -03:00
n-api.md 2024-10-16, Version 23.0.0 (Current) 2024-10-16 11:05:01 -03:00
net.md 2024-10-24, Version 23.1.0 (Current) 2024-10-24 23:26:25 +02:00
os.md doc: fix broken Android building link 2024-09-15 12:29:18 +00:00
packages.md doc: move dual package shipping docs to separate repo 2024-10-22 20:14:50 +00:00
path.md doc: add esm example in path.md 2024-11-08 11:27:17 +01:00
perf_hooks.md doc: broken PerformanceObserver code sample 2024-11-02 17:05:24 +00:00
permissions.md permission: ignore internalModuleStat on module loading 2024-11-11 17:31:44 +00:00
process.md src: add cli option to preserve env vars on dr 2024-11-08 17:49:43 +00:00
punycode.md doc: format doc/api/*.md with markdown formatter 2021-10-20 11:59:11 +02:00
querystring.md doc: get rid of unnecessary eslint-skip comments 2023-11-22 19:03:33 +00:00
readline.md doc: detailed description of keystrokes Ctrl-Y and Meta-Y 2023-08-08 19:51:43 +00:00
repl.md doc: remove parseREPLKeyword from REPL documentation 2024-09-22 19:08:53 +00:00
report.md src: add cli option to preserve env vars on dr 2024-11-08 17:49:43 +00:00
single-executable-applications.md doc: fix typo in method name in the sea doc 2024-08-15 11:11:01 +00:00
sqlite.md sqlite: add readOnly option 2024-10-31 11:41:14 +00:00
stream.md doc: add write flag when open file as the demo code's intention 2024-11-02 16:55:53 +00:00
string_decoder.md doc: add esm examples to node:string_decoder 2024-10-26 20:36:25 +00:00
synopsis.md doc: clarify explaination text on how to run the example 2023-10-06 13:37:31 +00:00
test.md 2024-10-24, Version 23.1.0 (Current) 2024-10-24 23:26:25 +02:00
timers.md timers: document ref option for scheduler.wait 2024-09-02 06:57:02 +00:00
tls.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
tracing.md doc: include node.module_timer on available categories 2024-07-01 15:18:16 +00:00
tty.md doc,tty: add documentation for ReadStream and WriteStream 2024-07-19 10:53:24 +00:00
typescript.md doc: add path aliases typescript doc 2024-11-08 10:28:40 +00:00
url.md url: add missing documentation for URL.parse() 2024-07-05 02:51:03 +00:00
util.md util: do not mark experimental feature as deprecated 2024-11-08 16:16:15 +00:00
v8.md doc: fix typos 2024-09-29 13:15:15 +00:00
vm.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
wasi.md doc,tools: enforce use of node: prefix 2024-07-21 15:44:27 +00:00
webcrypto.md doc: fix webcrypto.md AES-GCM backticks 2024-08-30 22:32:03 +00:00
webstreams.md 2024-08-21, Version 20.17.0 'Iron' (LTS) 2024-08-21 18:14:55 +02:00
worker_threads.md 2024-10-16, Version 22.10.0 (Current) 2024-10-17 00:34:53 +02:00
zlib.md zlib: remove zlib.bytesRead 2024-09-28 23:46:21 +00:00