Skip to content

C9 S1a: Linux route test for spawn_confined_model_linux (test only) - #1220

Merged
SashaMIT merged 1 commit into
spike/agent-hostfrom
ultrafast/omp-y20-c9s1
Oct 30, 2026
Merged

SashaMIT merged 1 commit into
spike/agent-hostfrom
ultrafast/omp-y20-c9s1

Conversation

@SashaMIT

Copy link
Copy Markdown
Collaborator

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().

  • Test: spawn_confined_model_linux_child_inherits_socket_filter (bridge.rs:3252); fixture tests/fixtures/linux_model_seccomp_probe.rs (raw syscalls, x86_64 and aarch64 numbers).
  • Falsifier: remove install_on_command (bridge.rs:882) -> red at bridge.rs:3297 ("probe did not inherit the socket filter").
  • Box (x86_64, kernel 6.12): test result: ok. 1 passed; --lib linux_model_seccomp 1/0; fmt clean.
  • GAP: aarch64 proof (CI arm runner / Jetson) pending. S1b (elastos-server journey + falsifier swapping server_infra.rs:1082 for plain ProviderBridge::spawn) is the next PR; until it lands the claim is only "the Linux route attaches the egress filter, proven on that route". Nothing here is called confined.

…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).
@SashaMIT
SashaMIT marked this pull request as ready for review October 30, 2026 10:17
@SashaMIT
SashaMIT merged commit 6590622 into spike/agent-host Oct 30, 2026
18 checks passed
@SashaMIT
SashaMIT deleted the ultrafast/omp-y20-c9s1 branch October 30, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant