Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codex-rs/sandboxing/src/landlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn create_linux_sandbox_command_args_for_permission_profile(

/// Converts the sandbox cwd and execution options into the CLI invocation for
/// `codex-linux-sandbox`.
#[cfg_attr(not(test), allow(dead_code))]
#[cfg(test)]
fn create_linux_sandbox_command_args(
command: Vec<String>,
command_cwd: &Path,
Expand Down
4 changes: 2 additions & 2 deletions codex-rs/sandboxing/src/seatbelt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn unix_socket_policy(proxy: &ProxyPolicyInputs) -> String {
policy
}

#[cfg_attr(not(test), allow(dead_code))]
#[cfg(test)]
fn dynamic_network_policy(
sandbox_policy: &SandboxPolicy,
enforce_managed_network: bool,
Expand Down Expand Up @@ -565,7 +565,7 @@ fn seatbelt_regex_for_unreadable_glob(pattern: &str) -> Option<String> {
Some(regex)
}

#[cfg_attr(not(test), allow(dead_code))]
#[cfg(test)]
fn create_seatbelt_command_args_for_legacy_policy(
command: Vec<String>,
sandbox_policy: &SandboxPolicy,
Expand Down
Loading