Skip to content

Commit 61dcd86

Browse files
committed
doc: explicitly mention node:fs module restriction
1 parent 90dea9e commit 61dcd86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/permissions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ process.permission.has('fs.read', '/home/rafaelgss/protected-folder'); // false
529529

530530
#### File System Permissions
531531

532+
The Permission Model by default restricts access to `node:fs` module.
533+
It doesn't guarantee users won't be able to write to the disk.
534+
For instance, `node:sqlite` allows users to use
535+
a file-based database.
536+
532537
To allow access to the file system, use the [`--allow-fs-read`][] and
533538
[`--allow-fs-write`][] flags:
534539

0 commit comments

Comments
 (0)