Repository navigation
test(core): add seatbelt sem lock tests - #1823
Merged
Merged
Conversation
davidhao3300
marked this pull request as ready for review
August 4, 2025 18:27
bolinfest
requested changes
Aug 5, 2025
bolinfest
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this test is helpful and well written! Though can we please update it as described so that we can be certain the resulting behavior is the same on Linux. (Or if it isn't, we may have to update how we use Landlock.)
| } | ||
|
|
||
| #[test] | ||
| fn seatbelt_base_policy_allows_ipc_posix_sem() { |
Collaborator
There was a problem hiding this comment.
This test can be removed.
Collaborator
|
I'll merge and make changes... |
bolinfest
approved these changes
Aug 14, 2025
Collaborator
|
Follow-up in #2317. |
Collaborator
|
#2318 is the PR that attempts to port this test to Linux, as well. |
Collaborator
|
Should be in the PR body, but this test was a follow-up to #1808. |
Contributor
Author
|
Thanks for handling, I definitely missed the PR comment and don't regularly check PRs outside of our main repo... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
cargo test -p codex_core seatbelt_base_policy_allows_ipc_posix_sem --no-fail-fast(failed: failed to download fromhttps://static.crates.io/crates/tokio-stream/0.1.17/download)cargo test -p codex_core seatbelt_base_policy_allows_ipc_posix_sem --no-fail-fast --offline(failed: attempting to make an HTTP request, but --offline was specified)cargo test --all-features --no-fail-fast --offline(failed: attempting to make an HTTP request, but --offline was specified)just fmt(failed: command not found: just)just fix(failed: command not found: just)Ran tests locally to confirm it passes on master and failed before my previous change
https://chatgpt.com/codex/tasks/task_i_6890f221e0a4833381cfb53e11499bcc