openai/codex · error · anyhow::Error
sandbox ACL path contains a reparse point
Error message
sandbox ACL path contains a reparse point: {} What it means
NtCreateFile on the final sandbox ACL directory component returned STATUS_REPARSE_POINT_ENCOUNTERED, meaning that component (or the final directory itself) is a reparse point such as a junction or symlink. Opening it would follow the reparse target and the ACL mutation would apply to a different location than validated, so the operation is aborted to prevent a sandbox escape.
Solutions
- Remove the junction/symlink at the reported path and replace it with a real directory, then re-run setup
- Audit what created the reparse point (mount points under the codex home are not supported for the sandbox ACL directory)
- Point the sandbox directory at a plain directory on a local disk that contains no reparse points
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win/no_reparse_dir.rs:134 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/69e7505a012a515c.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win/no_reparse_dir.rs:134
let mut handle = 0;
let status = unsafe {
NtCreateFile(
&mut handle,
WRITE_DAC,
&object_attributes,
&mut io_status_block,
ptr::null(),
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
FILE_OPEN_IF,
FILE_DIRECTORY_FILE,
ptr::null(),
/*ea_length*/ 0,
)
};
if status < 0 {
if status == STATUS_REPARSE_POINT_ENCOUNTERED {
bail!(
"sandbox ACL path contains a reparse point: {}",
path.display()
);
}
let error = unsafe { RtlNtStatusToDosError(status) };
return Err(std::io::Error::from_raw_os_error(error as i32))
.with_context(|| format!("open sandbox ACL directory {}", path.display()));
}
ensure!(
handle != 0 && handle != INVALID_HANDLE_VALUE,
"NtCreateFile returned an invalid sandbox ACL directory handle"
);
Ok(unsafe { OwnedHandle::from_raw_handle(handle as *mut c_void) })
}
#[cfg(test)]
#[path = "no_reparse_dir_tests.rs"]
mod tests;View on GitHub (pinned to 339751715c)