src: add permission flag to config file

PR-URL: https://github.com/nodejs/node/pull/60798
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Marco Ippolito
2025-11-21 08:50:55 +01:00
committed by Node.js GitHub Bot
parent dbe47043dd
commit 72dd0fa5cd
2 changed files with 5 additions and 1 deletions

View File

@@ -652,6 +652,9 @@
},
"allow-worker": {
"type": "boolean"
},
"permission": {
"type": "boolean"
}
}
},

View File

@@ -599,7 +599,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
"enable the permission system",
&EnvironmentOptions::permission,
kAllowedInEnvvar,
false);
false,
OptionNamespaces::kPermissionNamespace);
AddOption("--allow-fs-read",
"allow permissions to read the filesystem",
&EnvironmentOptions::allow_fs_read,