Skip to content

Commit

Permalink
doc: explicitly mention node:fs module restriction
Browse files Browse the repository at this point in the history
PR-URL: #54269
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
RafaelGSS authored and targos committed Aug 14, 2024
1 parent c8e358c commit 1535469
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ process.permission.has('fs.read', '/home/rafaelgss/protected-folder'); // false

#### File System Permissions

The Permission Model, by default, restricts access to the file system through the `node:fs` module.
It does not guarantee that users will not be able to access the file system through other means,
such as through the `node:sqlite` module.

To allow access to the file system, use the [`--allow-fs-read`][] and
[`--allow-fs-write`][] flags:

Expand Down

0 comments on commit 1535469

Please sign in to comment.