Repository navigation
fix(containment): permit pselect6 so cargo can download crates - #455
Conversation
|
Assessment: Comment The Checked and held
The |
9d2896a to
253695b
Compare
|
Assessment: Approve (posted as a comment) Re-reviewed at Checked and held
|
253695b to
9f97c71
Compare
|
Assessment: Approve (posted as a comment) Re-reviewed at Checked and held
|
|
Important (non-blocking): Rules:
Example: At this head, the Suggestion: Revert |
|
Assessment: Comment Re-reviewed at Checked and held
|
Description
In a box on Linux, cargo cannot download anything.
cargo addandcargo buildstop withUnrecoverable error in select/poll. The libcurl that cargo vendors waits on its sockets withselect(). glibc issues that aspselect6on ARM64, and the permit filter refusespselect6withEPERM. curl treats any error other thanEINTRas fatal.This change adds
pselect6toWORKLOAD_PERMITTEDon every architecture, andselecton x86-64, both unrestricted.ppollandepoll_pwaitdo. No reach is added.selecttoo: x86-64 has a separateselectcall. Whether glibc there issuesselectorpselect6was not checked, so both are permitted. The new filtered test runs rawselecton x86 CI.AGENTS.mdrecords the measurement under "Select waits".crates/containment/AGENTS.md. No user page lists the permit table.Related Issues
None.
Type of Change
Bug fix
Testing
select_waits_on_held_descriptors_under_the_filters(glibcselect(), rawpselect6, raw x86selecton a readable pipe)select()getsEPERM)select_waits_are_permitted_and_unmediatedstrace -fofcargo add serdein a boxpselect6(...) = -1 EPERM, thenUnrecoverable error in select/pollcargo addclap, serde, serde_json, csv, thencargo test)Unrecoverable error in select/poll, permits=1linker `cc` not founda090903) built against this branch (9d2896a0).cargo fmt --check,cargo clippy --workspace --all-targets --all-features -D warningsandcargo test --workspace --all-featurespass. On the busy test host,mcp_alias_fallback(Text file busy) and one policy timing test failed in the parallel run. Both passed on one thread, and neither touches seccomp.Still blocked
linker `cc` not found. Thecchelper's grant names only the resolved compiler, so the/usr/bin/ccsymlink is missing in the box. That is a separate fix.Checklist