This article analyzes different layers of sandbox isolation, explaining why namespaces and cgroups are visibility walls rather than security boundaries, and how technologies like gVisor provide stronger protection by interposing a user-space kernel.
隨著 AI 代理程式自動執行生成代碼、多租戶平台運行客戶腳本以及強化學習訓練等場景普及,如何安全地隔離不受信任的代碼成為科技圈關注的焦點。本文深入探討了 Linux 核心、容器技術、gVisor、微型虛擬機(MicroVM)與 WebAssembly 等不同層級的隔離機制,強調「隔離」並非單一概念,而是涉及攻擊面大小、狀態共享程度與硬體邊界等不同維度的權衡。