Skip to content

Commit

Permalink
doc: explicitly mention node:fs module restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Aug 8, 2024
1 parent 90dea9e commit 61dcd86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ process.permission.has('fs.read', '/home/rafaelgss/protected-folder'); // false

#### File System Permissions

The Permission Model by default restricts access to `node:fs` module.
It doesn't guarantee users won't be able to write to the disk.
For instance, `node:sqlite` allows users to use
a file-based database.

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

Expand Down

0 comments on commit 61dcd86

Please sign in to comment.