[BUG] Realm client controls retain obsolete configuration framing and plan sizes #14

Closed
opened 2026-09-30 06:23:08 +02:00 by erikinkinen · 0 comments
Owner

Summary

Launchd's public realm-client test setup still emits an obsolete BeginRealmConfiguration frame and reserves old plan extents. Nominal positive configuration controls therefore cannot reach the behavior they are intended to exercise. This is source-derived evidence; no tests or CI runs were executed.

Reproduction

Inspect realm_configuration_tests.rs and realm_client_tests.rs under src/runtime at Launchd 41bea21cd5. Their literal reservation appends eight u64 words to a24-byte handle, omits runtime descriptor capacity and selects a216-byte result budget. The current codec requires nine words (96 bytes total) and a224-byte result minimum. The two-client fixture's384-byte plan pool also predates the120-byte canonical header; its unchanged records require392 bytes. A proposed executable reproduction is cargo test in Launchd, which remains unrun.

Expected and actual behavior

Positive setup must use current exact framing and enough explicitly counted storage, then independently assert original identity, digest, effects and cleanup. Source shows old framing, old plan sizes and an obsolete frozen-plan digest. Admission must reject these inputs; changing production admission to accept them would weaken the contract. No executed failure output or exit status is claimed.

Environment and identity

  • Component: Launchd 41bea21cd5.
  • Integration: 450c6f2a0c4866ed476375239847c7667395d585.
  • Scripted host unit fixtures; no VM image, firmware, host identity or native authority is used.
  • Compiler and CI execution deferred; last known working revision unknown.

Evidence and prior checks

Authenticated process creation-mask configuration and exchange are implemented and published within full Open/openat: lib-ipc ec802763, lib-posixabi c81f92e5, launchd 1e3ebccd, posixd 6ca3e122, exsh 06056100, docs 468095f5, integration d8413bf1. Full conditional creation remains open; the complete ownership and inheritance design is recorded before ABI implementation.

Canonical configuration/pulls require minor four. Each original client explicitly carries a checked nine-bit initial mask in its unchanged 72-byte record. Owner appends have a distinct 60-byte client record; old frames are rejected. No host, environment, UID-zero exception or omitted-field default supplies policy. Launchd preserves the mask through reversible sorting by using only the remaining reserved u32 for temporary ordinals. Posixd reserves policy with the original counted receiver and verifies it against the frozen digest-covered plan before serving.

Compatibility 1.7 adds Umask operation11. Actual sealed CLAIM admission selects the exact native process generation. A complete previous-mask reply is prepared before one process-local exchange; only low permission bits of the argument are retained. Failed or ambiguous COMPLETE preserves the result and effect under its original serving owner without replay or rollback. Terminal retirement disables selection. No descriptor, filesystem handle, provider call, native endpoint or capability grant is added. The live credential view reports current policy rather than the initial frozen value.

Twelve new unit controls are authored and unrun, alongside migrated independent wire/C constants, original producer fixtures and existing sorting/credential controls. The native two-client workload configures masks027 and077, changes them independently before reciprocal channel traffic, then checks and restores them after peer participation. The LibIPC fixture defect and Launchd fixture defect are corrected and closed under the testing waiver. Reproductions remain explicitly source-derived: missing count, obsolete frame/storage sizes and addressability assumptions were corrected, and the canonical digest fixture was authored independently without executing EriX code.

Conditional creation must still consume current process policy, fresh held-parent evidence and complete default ACLs under original acquisition custody. Persistent inheritance, complete provider policy, libc/shell process integration and fork/exec inheritance remain unfinished. No full Open acceptance credit is added: 16.91% weighted, 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest build generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred. No executed pass, warning-free build or measured performance result is claimed.

Earlier evidence follows; the process-mask implementation above is current.

The public codec checks exact frame size and counted minima before reservation. Runtime fixture declarations remain at old widths. Migrate the independent literal setup, two-realm pool sizes, larger-cohort sizes and frozen digest without relaxing admission. Preserve explicit exhaustion tests by adjusting descriptor capacity along with their deliberately increased descriptor count.

Tracking

Related full Open work and shared fixture regression. Coordinate with explicit process-mask framing and retain authored-but-unrun evidence under the testing deferral.

## Summary Launchd's public realm-client test setup still emits an obsolete BeginRealmConfiguration frame and reserves old plan extents. Nominal positive configuration controls therefore cannot reach the behavior they are intended to exercise. This is source-derived evidence; no tests or CI runs were executed. ## Reproduction Inspect realm_configuration_tests.rs and realm_client_tests.rs under src/runtime at Launchd 41bea21cd50d85b30df72bedaeb80d9f987008cb. Their literal reservation appends eight u64 words to a24-byte handle, omits runtime descriptor capacity and selects a216-byte result budget. The current codec requires nine words (96 bytes total) and a224-byte result minimum. The two-client fixture's384-byte plan pool also predates the120-byte canonical header; its unchanged records require392 bytes. A proposed executable reproduction is cargo test in Launchd, which remains unrun. ## Expected and actual behavior Positive setup must use current exact framing and enough explicitly counted storage, then independently assert original identity, digest, effects and cleanup. Source shows old framing, old plan sizes and an obsolete frozen-plan digest. Admission must reject these inputs; changing production admission to accept them would weaken the contract. No executed failure output or exit status is claimed. ## Environment and identity - Component: Launchd 41bea21cd50d85b30df72bedaeb80d9f987008cb. - Integration: 450c6f2a0c4866ed476375239847c7667395d585. - Scripted host unit fixtures; no VM image, firmware, host identity or native authority is used. - Compiler and CI execution deferred; last known working revision unknown. ## Evidence and prior checks Authenticated process creation-mask configuration and exchange are implemented and published within [full Open/openat](https://git.erikinkinen.fi/erix/posixd/issues/17): [lib-ipc `ec802763`](https://git.erikinkinen.fi/erix/lib-ipc/commit/ec8027630ac2433851a02a681f3921eb235f3877), [lib-posixabi `c81f92e5`](https://git.erikinkinen.fi/erix/lib-posixabi/commit/c81f92e537066f9596d53d42a9a9d214c2be11a3), [launchd `1e3ebccd`](https://git.erikinkinen.fi/erix/launchd/commit/1e3ebccd1fe2e005c2c6d3af4419886d38237d91), [posixd `6ca3e122`](https://git.erikinkinen.fi/erix/posixd/commit/6ca3e122835c83c74ee153785d67c97cea32d353), [exsh `06056100`](https://git.erikinkinen.fi/erix/exsh/commit/060561008337aa4d95761ef2747b184fe9a9d72e), [docs `468095f5`](https://git.erikinkinen.fi/erix/docs/commit/468095f5465b07eab28915822805b1d5730db383), [integration `d8413bf1`](https://git.erikinkinen.fi/erix/integration/commit/d8413bf1bb92414b6b84ffec9e3839695b1439dc). Full conditional creation remains open; the complete ownership and inheritance design is recorded before ABI implementation. Canonical configuration/pulls require minor four. Each original client explicitly carries a checked nine-bit initial mask in its unchanged 72-byte record. Owner appends have a distinct 60-byte client record; old frames are rejected. No host, environment, UID-zero exception or omitted-field default supplies policy. Launchd preserves the mask through reversible sorting by using only the remaining reserved u32 for temporary ordinals. Posixd reserves policy with the original counted receiver and verifies it against the frozen digest-covered plan before serving. Compatibility 1.7 adds Umask operation11. Actual sealed CLAIM admission selects the exact native process generation. A complete previous-mask reply is prepared before one process-local exchange; only low permission bits of the argument are retained. Failed or ambiguous COMPLETE preserves the result and effect under its original serving owner without replay or rollback. Terminal retirement disables selection. No descriptor, filesystem handle, provider call, native endpoint or capability grant is added. The live credential view reports current policy rather than the initial frozen value. Twelve new unit controls are authored and unrun, alongside migrated independent wire/C constants, original producer fixtures and existing sorting/credential controls. The native two-client workload configures masks027 and077, changes them independently before reciprocal channel traffic, then checks and restores them after peer participation. The [LibIPC fixture defect](https://git.erikinkinen.fi/erix/lib-ipc/issues/4) and [Launchd fixture defect](https://git.erikinkinen.fi/erix/launchd/issues/14) are corrected and closed under the testing waiver. Reproductions remain explicitly source-derived: missing count, obsolete frame/storage sizes and addressability assumptions were corrected, and the canonical digest fixture was authored independently without executing EriX code. Conditional creation must still consume current process policy, fresh held-parent evidence and complete default ACLs under original acquisition custody. Persistent inheritance, complete provider policy, libc/shell process integration and fork/exec inheritance remain unfinished. No full Open acceptance credit is added: 16.91% weighted, 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest build generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred. No executed pass, warning-free build or measured performance result is claimed. Earlier evidence follows; the process-mask implementation above is current. The public codec checks exact frame size and counted minima before reservation. Runtime fixture declarations remain at old widths. Migrate the independent literal setup, two-realm pool sizes, larger-cohort sizes and frozen digest without relaxing admission. Preserve explicit exhaustion tests by adjusting descriptor capacity along with their deliberately increased descriptor count. ## Tracking Related [full Open work](https://git.erikinkinen.fi/erix/posixd/issues/17) and [shared fixture regression](https://git.erikinkinen.fi/erix/lib-ipc/issues/4). Coordinate with explicit process-mask framing and retain authored-but-unrun evidence under the testing deferral.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:32 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/launchd#14
No description provided.