codex/codex-rs/bwrap
Adam Perry @ OpenAI 636e505c5c Verify bundled bwrap in Bazel builds (#38494)
## Why

Bazel builds did not embed the SHA-256 digest used to verify the bundled
`bwrap` binary at launch.

## What changed

- Strip the Bazel-built `bwrap`, generate its SHA-256 digest, and pass that
  digest to `codex-linux-sandbox` through a compiler environment file.
- Report digest verification failures with exit code `8` instead of panicking.
- Add a Bazel integration test that accepts the original bundled binary and
  rejects a tampered copy.

GitOrigin-RevId: 224eeb6ae3d1bfb100e048b296f75fd8ba109581
History 2026-08-14 05:03:39 +00:00
..
src linux-sandbox: use standalone bundled bwrap (#21255) 2026-05-05 17:14:29 -07:00
BUILD.bazel Verify bundled bwrap in Bazel builds (#38494) 2026-08-14 05:03:39 +00:00
build.rs fix(bwrap): emit libcap after standalone archive (#21285) 2026-05-05 22:22:01 -07:00
Cargo.toml linux-sandbox: use standalone bundled bwrap (#21255) 2026-05-05 17:14:29 -07:00
config.h linux-sandbox: use standalone bundled bwrap (#21255) 2026-05-05 17:14:29 -07:00