From 6a4f05e384d8da419cb97cbc5440e922bc51f515 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Sat, 10 Aug 2024 17:07:06 -0300 Subject: [PATCH] doc: explicitly mention node:fs module restriction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/54269 Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- doc/api/permissions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/permissions.md b/doc/api/permissions.md index d41c94d74f676d..8bd0492bcd623a 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -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: