doc: explicitly mention node:fs module restriction

PR-URL: https://github.com/nodejs/node/pull/54269
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rafael Gonzaga 2024-08-10 17:07:06 -03:00 committed by GitHub
parent 50a49a5faa
commit b49019eed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: