Skip to content

Make permission transforms aware of executor path context - #41909

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/14fd866a17a0ac4a595aa4f0e2fb82bfae1a8838
Aug 31, 2026
Merged

Make permission transforms aware of executor path context#41909
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/14fd866a17a0ac4a595aa4f0e2fb82bfae1a8838

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 31, 2026

Copy link
Copy Markdown

Make permission transforms aware of executor path context

What changed

  • Add context-aware normalization, materialization, and intersection helpers for additional filesystem permissions.
  • Resolve project roots, home-relative deny globs, temporary directories, and filesystem roots from the executor's FileSystemSandboxPolicyContext while preserving URI path conventions and symlinked paths.
  • Keep deny constraints when intersecting grants across POSIX, Windows, and UNC paths, and reject incompatible path conventions when executor context is available.

Testing

  • Cover cross-convention validation, empty temporary-directory contexts, home-relative deny globs, and rooted deny globs for POSIX, Windows, and UNC paths.

## What changed

- Add context-aware normalization, materialization, and intersection helpers for additional filesystem permissions.
- Resolve project roots, home-relative deny globs, temporary directories, and filesystem roots from the executor's `FileSystemSandboxPolicyContext` while preserving URI path conventions and symlinked paths.
- Keep deny constraints when intersecting grants across POSIX, Windows, and UNC paths, and reject incompatible path conventions when executor context is available.

## Testing

- Cover cross-convention validation, empty temporary-directory contexts, home-relative deny globs, and rooted deny globs for POSIX, Windows, and UNC paths.

GitOrigin-RevId: 14fd866a17a0ac4a595aa4f0e2fb82bfae1a8838
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/14fd866a17a0ac4a595aa4f0e2fb82bfae1a8838 branch from 3d5663c to b51b077 Compare August 31, 2026 20:51
@copyberry
copyberry Bot merged commit b51b077 into main Aug 31, 2026
24 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/14fd866a17a0ac4a595aa4f0e2fb82bfae1a8838 branch August 31, 2026 20:53
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants