mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Record Windows world-writable scan telemetry (#40983)
## What changed - Return the number of directories flagged by successful Windows sandbox world-writable scans. - Record that count in the `codex.windows_sandbox.world_writable_scan_flagged_directories` histogram for startup and warning-triggered scans. - Tag each measurement with a `success` or `error` result, using a count of zero when the scan fails. GitOrigin-RevId: 076160f36b1d62fa737f4b2d0318774e6c44a4b1
This commit is contained in:
1 parent
d61ba72f2f
commit
37a5149822
6 files changed
+31
-5
No files matched your search
@@ -48,13 +48,15 @@ impl ChatWidget {
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
match codex_windows_sandbox::apply_world_writable_scan_and_denies_for_permissions(
|
||||
let result = codex_windows_sandbox::apply_world_writable_scan_and_denies_for_permissions(
|
||||
self.config.codex_home.as_path(),
|
||||
cwd.as_path(),
|
||||
&env_map,
|
||||
&permissions,
|
||||
Some(self.config.codex_home.as_path()),
|
||||
) {
|
||||
);
|
||||
crate::windows_sandbox::record_world_writable_scan_result(&self.session_telemetry, &result);
|
||||
match result {
|
||||
Ok(_) => None,
|
||||
Err(_) => Some((Vec::new(), 0, true)),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user