mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Expand MXC volume grants and resolve deny globs (#44289)
## Why MXC volume-root grants are nonrecursive, and filesystem deny globs were rejected before launch. ## What changed - Expand volume-root grants to include existing immediate children, preserving read-only carveouts and denies. Children created directly under a volume root after policy construction are not granted access. - Normalize filesystem object aliases before and after expansion so generated grants preserve tighter access restrictions. - Skip unavailable volumes and uninspectable generated children. - Resolve deny globs into concrete file and directory paths using the Windows sandbox resolver. ## Testing Add regression tests for read-only children and aliases, normalized root access, uninspectable children, and deny glob expansion alongside explicit denies. GitOrigin-RevId: 3242e9a30d16581d6fe5b7b6e39e0e0f71ca6ef4
This commit is contained in:
1 parent
885113aa1d
commit
d117c2eb02
4 files changed
+329
-27
No files matched your search
@@ -19,6 +19,7 @@ anyhow = { workspace = true }
|
||||
codex-protocol = { workspace = true }
|
||||
codex-utils-absolute-path = { workspace = true }
|
||||
codex-utils-path-uri = { workspace = true }
|
||||
codex-windows-sandbox = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
wxc_common = { workspace = true }
|
||||
|
||||
@@ -27,6 +28,13 @@ appcontainer_common = { workspace = true }
|
||||
learning_mode_windows = { workspace = true }
|
||||
# 1.2.4 imports OneCore_apiset, which the GNU Windows toolchain does not ship.
|
||||
tracelogging = "=1.2.3"
|
||||
windows-sys = { version = "0.61", features = [
|
||||
"Win32_Foundation",
|
||||
"Win32_Storage_FileSystem",
|
||||
"Win32_System_Com",
|
||||
"Win32_System_SystemInformation",
|
||||
"Win32_UI_Shell",
|
||||
] }
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = { workspace = true }
|
||||
|
||||
Reference in new issue
Block a user