mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Harden and share Windows sandbox identity helpers (#45533)
## What changed - Share process package-family queries, token user SID extraction, and account-name lookup through `codex_windows_sandbox`, and use them in the provisioning service. - Bound token query sizes and validate SID pointers, revisions, and lengths before copying SIDs into owned storage. - Use a drop guard to balance firewall COM initialization, and track the package lifecycle directory guard separately so cleanup releases it while keeping ancestor and home handles pinned. ## Testing Add tests that verify copied SIDs outlive their query buffers and reject truncated token data, malformed SIDs, and invalid SID pointers. GitOrigin-RevId: 2b893e4524d3e00cb114df05215beef7b9eebbe9
This commit is contained in:
1 parent
a4354e2d27
commit
d39cfa8a2d
11 files changed
+259
-247
No files matched your search
@@ -80,6 +80,7 @@ features = [
|
||||
"Win32_System_Console",
|
||||
"Win32_System_RemoteDesktop",
|
||||
"Win32_Storage_FileSystem",
|
||||
"Win32_Storage_Packaging_Appx",
|
||||
"Win32_System_Diagnostics_ToolHelp",
|
||||
"Win32_NetworkManagement_NetManagement",
|
||||
"Win32_NetworkManagement_WindowsFilteringPlatform",
|
||||
|
||||
Reference in new issue
Block a user