Skip to content

Commit

Permalink
doc: clarify fs permissions only affect fs module
Browse files Browse the repository at this point in the history
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 <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
  • Loading branch information
tniessen authored and targos committed May 3, 2023
1 parent 97a3d39 commit 98603b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ The available permissions are documented by the [`--experimental-permission`][]
flag.

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

```console
$ node --experimental-permission index.js
Expand Down

0 comments on commit 98603b6

Please sign in to comment.