From 1535469c12cca5f92b8de21768dc336fa2cd8020 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 a93bc83f02f89d..21e174e9e0ae51 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -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: