mirror of
https://github.com/openai/codex.git
synced 2026-09-04 15:08:45 +00:00
fix: preserve sandbox audit wiring after rebase
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
@@ -953,11 +953,15 @@ impl Session {
|
||||
None
|
||||
};
|
||||
let blocked_request_observer = if managed_network_requirements_configured {
|
||||
config
|
||||
.permissions
|
||||
.network
|
||||
.as_ref()
|
||||
.map(|_| build_blocked_request_observer(Arc::clone(&network_approval)))
|
||||
config.permissions.network.as_ref().map(|_| {
|
||||
build_blocked_request_observer(
|
||||
Arc::clone(&network_approval),
|
||||
crate::security_events::SandboxViolationAuditContext::from_network_proxy(
|
||||
state_db_ctx.clone(),
|
||||
network_proxy_audit_metadata.clone(),
|
||||
),
|
||||
)
|
||||
})
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
@@ -101,6 +101,7 @@ async fn explicit_escalation_prepares_exec_without_managed_network() -> anyhow::
|
||||
let options = ExecOptions {
|
||||
expiration: ExecExpiration::DefaultTimeout,
|
||||
capture_policy: ExecCapturePolicy::ShellTool,
|
||||
sandbox_violation_context: None,
|
||||
};
|
||||
let permissions = PermissionProfile::Disabled;
|
||||
let manager = SandboxManager::new();
|
||||
|
||||
Reference in New Issue
Block a user