feat(core) SandboxPolicy::Custom

This commit is contained in:
Dylan Hurd
2026-02-22 09:47:32 -08:00
parent e7b6f38b58
commit 3d619f32b7
16 changed files with 408 additions and 80 deletions

View File

@@ -321,6 +321,14 @@ impl DeveloperInstructions {
let roots = sandbox_policy.get_writable_roots_with_cwd(cwd);
(SandboxMode::WorkspaceWrite, Some(roots))
}
SandboxPolicy::Custom { .. } => {
let roots = sandbox_policy.get_writable_roots_with_cwd(cwd);
if roots.is_empty() {
(SandboxMode::ReadOnly, None)
} else {
(SandboxMode::WorkspaceWrite, Some(roots))
}
}
};
DeveloperInstructions::from_permissions_with_network(