教程40
Codex 用 OS 级沙箱隔离命令执行
原标题:Instead of moving computation to a separate container to provide isolation, Codex uses OS-level sandboxing to constrain commands running ...
Codex 不把计算搬到独立容器,而是用 OS 级沙箱约束在用户现有环境中运行的命令。以 Mac 上开发 iOS 应用为例,Docker 沙箱无法运行原生 Mac 可执行文件组成的 iOS 构建工具链,也无法启动 iPhone 模拟器;若把构建和模拟器操作交给 Mac 宿主机,这些操作又会落在容器沙箱之外,需要单独限制。
中文译文尚未完成,先为你展示原文。
Instead of moving computation to a separate container to provide isolation, Codex uses OS-level sandboxing to constrain commands running in the user’s existing environment.
For example, consider using Codex to develop an iOS app on a Mac. If you decided to sandbox Codex by running it inside Docker, Codex would not be able to run the iOS build toolchain composed of native Mac executables, nor could it launch the iPhone simulator to run the code.
A Docker-based workflow could delegate builds and simulator operations to the Mac host, but those operations would execute outside the container’s sandbox and would need their own restrictions.
同一件事的其他报道1 篇
OpenAI Developers · 原文
