--permission
版本历史
| 版本 | 变更 |
|---|---|
| v22.13.0 | 权限模型现在是稳定的。 |
| v20.0.0 | 新增于: v20.0.0 |
为当前进程启用权限模型。启用后,以下权限将受到限制:
\Enable the Permission Model for current process. When enabled, the following permissions are restricted:
-
文件系统 - 可通过
--allow-fs-read、--allow-fs-write标志进行管理\File System - manageable through
--allow-fs-read,--allow-fs-writeflags -
子进程 - 可通过
--allow-child-process标志进行管理\Child Process - manageable through
--allow-child-processflag -
工作线程 - 可通过
--allow-worker标志进行管理\Worker Threads - manageable through
--allow-workerflag -
WASI - 可通过
--allow-wasi标志进行管理\WASI - manageable through
--allow-wasiflag -
插件 - 可通过
--allow-addons标志进行管理\Addons - manageable through
--allow-addonsflag