From 206ea4c9a242a83ceb53a836ae1442c4d2523ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 29 Apr 2023 18:10:49 +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. --- 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