Skip to content

Fail closed on unsafe Linux unreadable globs - #38026

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2f3cb398d39a9bc077d3a1b74e08dc506d239e60
Aug 11, 2026
Merged

Fail closed on unsafe Linux unreadable globs#38026
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2f3cb398d39a9bc077d3a1b74e08dc506d239e60

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 11, 2026

Copy link
Copy Markdown

Fail closed on unsafe Linux unreadable globs

Why

Linux sandbox unreadable globs without a non-root directory prefix cannot be safely expanded because they would require scanning from /. Silently skipping these patterns leaves the requested deny-read rule unenforced.

What changed

Return a fatal sandbox construction error when an unreadable glob cannot be split into a safe ripgrep search root. The error directs callers to use a pattern with a non-root directory prefix.

Testing

Add a regression test confirming that /**/*.env rejects Bubblewrap command construction.

## Why

Linux sandbox unreadable globs without a non-root directory prefix cannot be safely expanded because they would require scanning from `/`. Silently skipping these patterns leaves the requested deny-read rule unenforced.

## What changed

Return a fatal sandbox construction error when an unreadable glob cannot be split into a safe ripgrep search root. The error directs callers to use a pattern with a non-root directory prefix.

## Testing

Add a regression test confirming that `/**/*.env` rejects Bubblewrap command construction.

GitOrigin-RevId: 2f3cb398d39a9bc077d3a1b74e08dc506d239e60
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2f3cb398d39a9bc077d3a1b74e08dc506d239e60 branch from 7aa22bc to 1dac3d9 Compare August 11, 2026 15:54
@copyberry
copyberry Bot merged commit 1dac3d9 into main Aug 11, 2026
28 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2f3cb398d39a9bc077d3a1b74e08dc506d239e60 branch August 11, 2026 15:55
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 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.

5 participants