From 98603b6fd31be6c40b2ed1a9d90e70e4d12be1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 1 May 2023 18:19:48 +0200 Subject: [PATCH] doc: clarify fs permissions only affect fs module As far as I can tell, the permission model implementation currently does not restrict all file system operations but only those through the fs module. WASI, for example, bypasses the permission model entirely. PR-URL: https://github.com/nodejs/node/pull/47782 Reviewed-By: Rafael Gonzaga Reviewed-By: Luigi Pinca Reviewed-By: Marco Ippolito --- doc/api/permissions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/permissions.md b/doc/api/permissions.md index 4baa74489f65bf..bbe7e49a6bbe6b 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -465,8 +465,8 @@ The available permissions are documented by the [`--experimental-permission`][] flag. When starting Node.js with `--experimental-permission`, -the ability to access the file system, spawn processes, and -use `node:worker_threads` will be restricted. +the ability to access the file system through the `fs` module, spawn processes, +and use `node:worker_threads` will be restricted. ```console $ node --experimental-permission index.js