Skip to content

Commit

Permalink
Update doc/api/permissions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
RafaelGSS and tniessen committed Aug 8, 2024
1 parent 61dcd86 commit d882db1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,9 @@ 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.
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 d882db1

Please sign in to comment.