diff --git a/codex-rs/linux-sandbox/tests/suite/landlock.rs b/codex-rs/linux-sandbox/tests/suite/landlock.rs index d5b338599b..374c50a3f5 100644 --- a/codex-rs/linux-sandbox/tests/suite/landlock.rs +++ b/codex-rs/linux-sandbox/tests/suite/landlock.rs @@ -575,8 +575,8 @@ async fn sandbox_blocks_explicit_split_policy_carveouts_under_bwrap() { }, FileSystemSandboxEntry { path: FileSystemPath::Path { - path: AbsolutePathBuf::try_from(sandbox_helper_dir.as_path()) - .expect("absolute helper dir"), + path: AbsolutePathBuf::relative_to_current_dir(sandbox_helper_dir.as_path()) + .expect("helper dir"), }, access: FileSystemAccessMode::Read, }, @@ -648,8 +648,8 @@ async fn sandbox_reenables_writable_subpaths_under_unreadable_parents() { }, FileSystemSandboxEntry { path: FileSystemPath::Path { - path: AbsolutePathBuf::try_from(sandbox_helper_dir.as_path()) - .expect("absolute helper dir"), + path: AbsolutePathBuf::relative_to_current_dir(sandbox_helper_dir.as_path()) + .expect("helper dir"), }, access: FileSystemAccessMode::Read, },