mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
linux-sandbox: use standalone bundled bwrap
This commit is contained in:
@@ -12,10 +12,10 @@ outside the current working directory whenever it is available. If `bwrap` is
|
||||
present but too old to support
|
||||
`--argv0`, the helper keeps using system bubblewrap and switches to a
|
||||
no-`--argv0` compatibility path for the inner re-exec. If `bwrap` is missing,
|
||||
the helper falls back to the vendored bubblewrap path compiled into this
|
||||
binary.
|
||||
the helper falls back to the bundled `codex-resources/bwrap` binary shipped
|
||||
with Codex.
|
||||
Codex also surfaces a startup warning when `bwrap` is missing so users know it
|
||||
is falling back to the vendored helper. Codex surfaces the same startup warning
|
||||
is falling back to the bundled helper. Codex surfaces the same startup warning
|
||||
path when bubblewrap cannot create user namespaces. WSL2 follows the normal
|
||||
Linux bubblewrap path. WSL1 is not supported for bubblewrap sandboxing because
|
||||
it cannot create the required user namespaces, so Codex rejects sandboxed shell
|
||||
@@ -28,8 +28,8 @@ commands that would enter the bubblewrap path.
|
||||
helper uses it.
|
||||
- If `bwrap` is present but too old to support `--argv0`, the helper uses a
|
||||
no-`--argv0` compatibility path for the inner re-exec.
|
||||
- If `bwrap` is missing, the helper falls back to the vendored bubblewrap
|
||||
path.
|
||||
- If `bwrap` is missing, the helper falls back to the bundled
|
||||
`codex-resources/bwrap` path.
|
||||
- If `bwrap` is missing, Codex also surfaces a startup warning instead of
|
||||
printing directly from the sandbox helper.
|
||||
- If bubblewrap cannot create user namespaces, Codex surfaces a startup warning
|
||||
|
||||
Reference in New Issue
Block a user