mirror of
https://github.com/openai/codex.git
synced 2026-11-29 00:00:54 +00:00
## Why Linux filesystem rules that depend on `TMPDIR` or `HOME` need to keep the same meaning when shell snapshot replay changes the command environment. ## What changed Resolve `:tmpdir` entries and home-relative read-deny globs against the prepared launch environment. Omit `:tmpdir` entries when `TMPDIR` is unset or empty. Resolve relative temporary directories from the physical command working directory and verify that directory before and after bubblewrap sets up its mounts. Preserve process confinement when resolving paths makes the filesystem rules appear to grant full-disk access. Reject bindings that would change the grants enforced by legacy Landlock. ## Testing Add regression coverage for shell snapshot replay, working-directory changes, and preservation of Linux process confinement. GitOrigin-RevId: 07d4698ca7b30b0259193513145233ae1bdc7f19
46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[package]
|
|
name = "codex-sandboxing"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
name = "codex_sandboxing"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
codex-mxc-sandbox = { workspace = true }
|
|
codex-network-proxy = { workspace = true }
|
|
codex-protocol = { workspace = true }
|
|
codex-uds = { workspace = true }
|
|
codex-utils-absolute-path = { workspace = true }
|
|
codex-utils-path-uri = { workspace = true }
|
|
codex-utils-pty = { workspace = true }
|
|
codex-windows-sandbox = { workspace = true }
|
|
dunce = { workspace = true }
|
|
libc = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
regex-lite = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt", "sync"] }
|
|
tracing = { workspace = true, features = ["log"] }
|
|
which = { workspace = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
codex-shell-command = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
codex-otel = { workspace = true }
|
|
codex-utils-home-dir = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
codex-utils-cargo-bin = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt", "time"] }
|