windows-sandbox: feed setup from resolved permissions

This commit is contained in:
Michael Bolin
2026-05-20 10:33:31 -07:00
parent e2458eaaaf
commit acc03ddfa2
11 changed files with 201 additions and 117 deletions
+5 -2
View File
@@ -179,10 +179,13 @@ pub fn run_elevated_setup(
env_map: &HashMap<String, String>,
codex_home: &Path,
) -> anyhow::Result<()> {
let permissions =
codex_windows_sandbox::ResolvedWindowsSandboxPermissions::from_legacy_policy_for_cwd(
policy, policy_cwd,
);
codex_windows_sandbox::run_elevated_setup(
codex_windows_sandbox::SandboxSetupRequest {
policy,
policy_cwd,
permissions: &permissions,
command_cwd,
env_map,
codex_home,