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 committed May 1, 2023
1 parent 609d2b0 commit 3a3672b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/permissions.md
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 3a3672b

Please sign in to comment.