Repository navigation
C9 S1a: Linux route test for spawn_confined_model_linux (test only) - #1220
Merged
Merged
Conversation
…ess filter (test only) The child started through the public ProviderBridge::spawn_confined_model_linux reports NO_NEW_PRIVS=1, SECCOMP=2 and AF_INET socket EPERM from inside. Falsifier: removing install_on_command (bridge.rs:882) turns it red at :3297. Zero non-test lines in elastos/. Per Rong S1 ruling 15:45 (A1-A3).
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
C9 step S1a (M1 check C9, step 1 of the stacked plan v2). Test code only: zero non-test lines in elastos/.
Per Rong's S1 ruling (rong-c9-s1-ruling-20261030-1545.md, A1-A3): no test hook. A Linux twin of the macOS bridge test calls the public
ProviderBridge::spawn_confined_model_linux(bridge.rs:814). The probe child reports from inside: PR_GET_NO_NEW_PRIVS == 1, PR_GET_SECCOMP == 2, socket(AF_INET) == -EPERM, and writes a token only if all three hold. The child is gone after shutdown().spawn_confined_model_linux_child_inherits_socket_filter(bridge.rs:3252); fixturetests/fixtures/linux_model_seccomp_probe.rs(raw syscalls, x86_64 and aarch64 numbers).install_on_command(bridge.rs:882) -> red at bridge.rs:3297 ("probe did not inherit the socket filter").test result: ok. 1 passed;--lib linux_model_seccomp1/0; fmt clean.