node/lib
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
..
assert
dns
fs
inspector
internal permission: ignore internalModuleStat on module loading 2024-11-11 17:31:44 +00:00
path
readline lib: remove Symbol[Async]Dispose polyfills 2024-10-07 09:47:44 +00:00
stream
test test_runner: do not expose internal loader 2024-08-13 15:17:50 +02:00
timers lib: remove unnecessary optional chaining 2024-11-07 15:59:12 +00:00
util
_http_agent.js lib: remove startsWith/endsWith primordials for char checks 2024-10-19 10:18:10 +00:00
_http_client.js http: add diagnostic channel http.client.request.created 2024-10-31 13:04:25 +00:00
_http_common.js lib: prefer optional chaining 2024-09-24 19:48:15 +00:00
_http_incoming.js lib: prefer optional chaining 2024-09-24 19:48:15 +00:00
_http_outgoing.js http: don't emit error after destroy 2024-10-28 12:57:58 +00:00
_http_server.js http: add diagnostic channel http.server.response.created 2024-11-02 13:46:20 +00:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js
_stream_transform.js
_stream_wrap.js
_stream_writable.js
_tls_common.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
_tls_wrap.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
assert.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
async_hooks.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
buffer.js lib: runtime deprecate SlowBuffer 2024-10-15 21:24:39 +00:00
child_process.js lib: replace createDeferredPromise util with Promise.withResolvers 2024-10-19 10:13:58 +02:00
cluster.js
console.js
constants.js
crypto.js crypto: runtime deprecate crypto.fips 2024-09-25 22:31:03 +00:00
dgram.js lib: add UV_UDP_REUSEPORT for udp 2024-10-21 10:25:10 +00:00
diagnostics_channel.js diagnostics_channel: fix unsubscribe during publish 2024-10-14 10:55:39 +00:00
dns.js dns: honor the order option 2024-10-17 13:18:28 +00:00
domain.js lib: the REPL should survive deletion of Array.prototype methods 2024-09-17 15:08:43 +00:00
eslint.config_partial.mjs zlib: remove prototype primordials usage 2024-09-19 03:16:20 +00:00
events.js lib: remove unnecessary optional chaining 2024-11-07 15:59:12 +00:00
fs.js lib: remove unnecessary optional chaining 2024-11-07 15:59:12 +00:00
http2.js
http.js http: expose websockets 2024-07-08 15:55:43 +00:00
https.js lib: remove Symbol[Async]Dispose polyfills 2024-10-07 09:47:44 +00:00
inspector.js lib: remove Symbol[Async]Dispose polyfills 2024-10-07 09:47:44 +00:00
module.js module: add findPackageJSON util 2024-10-25 20:40:54 +00:00
net.js net: add UV_TCP_REUSEPORT for tcp 2024-10-21 13:10:53 +00:00
os.js src: improve node:os userInfo performance 2024-11-08 19:40:25 +00:00
path.js path,win: fix bug in resolve and normalize 2024-11-05 23:21:54 +00:00
perf_hooks.js
process.js
punycode.js
querystring.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
readline.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
repl.js repl: runtime deprecate instantiating without new 2024-11-07 08:03:05 +00:00
sea.js
sqlite.js lib,src,test,doc: add node:sqlite module 2024-07-09 20:33:38 +00:00
stream.js stream: change stream to use index instead of for...of 2024-08-23 07:31:55 +00:00
string_decoder.js string_decoder: refactor encoding validation 2024-09-23 22:49:53 +00:00
sys.js lib: add note about removing node:sys module 2024-09-05 21:53:52 +02:00
test.js test_runner: add snapshot testing 2024-05-30 09:07:17 -04:00
timers.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
tls.js tls: remove prototype primordials 2024-07-07 00:56:04 +00:00
trace_events.js
tty.js tty: initialize winSize array with values 2024-08-11 06:32:13 +00:00
url.js url: runtime deprecate url.parse 2024-10-20 19:01:37 +00:00
util.js util: do not mark experimental feature as deprecated 2024-11-08 16:16:15 +00:00
v8.js v8: out of bounds copy 2024-10-07 11:11:29 +00:00
vm.js vm: introduce vanilla contexts via vm.constants.DONT_CONTEXTIFY 2024-08-29 09:05:03 +00:00
wasi.js
worker_threads.js worker: add markAsUncloneable api 2024-10-04 07:09:37 +00:00
zlib.js zlib: remove zlib.bytesRead 2024-09-28 23:46:21 +00:00