Skip to content

Commit 98603b6

Browse files
tniessentargos
authored andcommitted
doc: clarify fs permissions only affect fs module
As far as I can tell, the permission model implementation currently does not restrict all file system operations but only those through the fs module. WASI, for example, bypasses the permission model entirely. PR-URL: #47782 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent 97a3d39 commit 98603b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/permissions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ The available permissions are documented by the [`--experimental-permission`][]
465465
flag.
466466

467467
When starting Node.js with `--experimental-permission`,
468-
the ability to access the file system, spawn processes, and
469-
use `node:worker_threads` will be restricted.
468+
the ability to access the file system through the `fs` module, spawn processes,
469+
and use `node:worker_threads` will be restricted.
470470

471471
```console
472472
$ node --experimental-permission index.js

0 commit comments

Comments
 (0)