mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Exercise restricted-token sandboxing in cyber policy tests (#39646)
## What changed Run both branches of the heuristically safe command policy test with the Windows sandbox level set to `RestrictedToken`. GitOrigin-RevId: ae5d754ec4a51d73a8e5f9d844f94a91f795fb72
This commit is contained in:
@@ -174,7 +174,7 @@ async fn cyber_policy_keeps_heuristically_safe_commands_inside_the_sandbox() {
|
||||
approval_policy: AskForApproval::OnRequest,
|
||||
permission_profile: PermissionProfile::read_only(),
|
||||
environment_policy: None,
|
||||
windows_sandbox_level: WindowsSandboxLevel::Disabled,
|
||||
windows_sandbox_level: WindowsSandboxLevel::RestrictedToken,
|
||||
sandbox_permissions: SandboxPermissions::UseDefault,
|
||||
prefix_rule: None,
|
||||
allow_prefix_rules: AllowPrefixRules::IgnoreForCyberModel,
|
||||
@@ -194,7 +194,7 @@ async fn cyber_policy_keeps_heuristically_safe_commands_inside_the_sandbox() {
|
||||
approval_policy: AskForApproval::OnRequest,
|
||||
permission_profile: PermissionProfile::read_only(),
|
||||
environment_policy: None,
|
||||
windows_sandbox_level: WindowsSandboxLevel::Disabled,
|
||||
windows_sandbox_level: WindowsSandboxLevel::RestrictedToken,
|
||||
sandbox_permissions: SandboxPermissions::UseDefault,
|
||||
prefix_rule: None,
|
||||
allow_prefix_rules: AllowPrefixRules::Honor,
|
||||
|
||||
Reference in New Issue
Block a user