mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Extract Windows deny-read glob scan planning into protocol (#43903)
Move lexical scan-bound calculation into `codex_protocol::permissions` and expose `windows_deny_read_glob_scan` with its `WindowsDenyReadGlobScan` result. Have the Windows sandbox resolver use the shared helper, preserving literal scan roots, glob suffixes, and traversal depth limits without filesystem access in the planner. GitOrigin-RevId: 748a12b45f89c6e045e9123c055453ec39c202b1
This commit is contained in:
1 parent
6d377e96eb
commit
4fd2c460dd
3 files changed
+53
-48
No files matched your search
@@ -24,6 +24,11 @@ use crate::protocol::NetworkAccess;
|
||||
use crate::protocol::SandboxPolicy;
|
||||
use crate::protocol::WritableRoot;
|
||||
|
||||
mod windows_glob;
|
||||
|
||||
pub use windows_glob::WindowsDenyReadGlobScan;
|
||||
pub use windows_glob::windows_deny_read_glob_scan;
|
||||
|
||||
const PROTECTED_METADATA_GIT_PATH_NAME: &str = ".git";
|
||||
const PROTECTED_METADATA_AGENTS_PATH_NAME: &str = ".agents";
|
||||
const PROTECTED_METADATA_CODEX_PATH_NAME: &str = ".codex";
|
||||
|
||||
Reference in new issue
Block a user