mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
feat: allow limited git writes in workspace sandbox
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
d6748f741a
commit
8980fd17ee
@@ -12,7 +12,10 @@ Expects `/usr/bin/sandbox-exec` to be present.
|
||||
|
||||
When using the workspace-write sandbox policy, the Seatbelt profile allows
|
||||
writes under the configured writable roots while keeping `.git` (directory or
|
||||
pointer file), the resolved `gitdir:` target, and `.codex` read-only.
|
||||
pointer file), the resolved `gitdir:` target, and `.codex` read-only by
|
||||
default. When `allow_limited_git_writes` is enabled, Git metadata writes are allowed,
|
||||
but `.git/config`, `.git/hooks`, and resolved worktree gitdir config/hooks
|
||||
remain read-only.
|
||||
|
||||
Network access and filesystem read/write roots are controlled by
|
||||
`SandboxPolicy`. Seatbelt consumes the resolved policy and enforces it.
|
||||
|
||||
Reference in New Issue
Block a user