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 <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
RafaelGSS authored and targos committed Oct 2, 2024
1 parent 67ca397 commit 6a4f05e
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 @@ -529,6 +529,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 6a4f05e

Please sign in to comment.