[BUG] Realm client controls retain obsolete configuration framing and plan sizes #14
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/launchd#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
41bea21cd5.Evidence and prior checks
Authenticated process creation-mask configuration and exchange are implemented and published within full Open/openat: lib-ipc
ec802763, lib-posixabic81f92e5, launchd1e3ebccd, posixd6ca3e122, exsh06056100, docs468095f5, integrationd8413bf1. 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.
erikinkinen referenced this issue from erix/blockd2026-09-30 06:28:49 +02:00
erikinkinen referenced this issue from erix/coreutils2026-09-30 06:28:53 +02:00
erikinkinen referenced this issue from erix/crashd2026-09-30 06:28:56 +02:00
erikinkinen referenced this issue from erix/deviced2026-09-30 06:29:03 +02:00
erikinkinen referenced this issue from erix/docs2026-09-30 06:29:05 +02:00
erikinkinen referenced this issue from erix/drv-acpi2026-09-30 06:29:10 +02:00
erikinkinen referenced this issue from erix/drv-i80422026-09-30 06:29:14 +02:00
erikinkinen referenced this issue from erix/drv-ps2-keyboard2026-09-30 06:29:16 +02:00
erikinkinen referenced this issue from erix/drv-ps2-mouse2026-09-30 06:29:19 +02:00
erikinkinen referenced this issue from erix/drv-rtc-cmos2026-09-30 06:29:23 +02:00
erikinkinen referenced this issue from erix/drv-serial2026-09-30 06:29:26 +02:00
erikinkinen referenced this issue from erix/drv-virtio-block2026-09-30 06:29:30 +02:00
erikinkinen referenced this issue from erix/dynlinkd2026-09-30 06:29:34 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-09-30 06:29:36 +02:00
erikinkinen referenced this issue from erix/exsh2026-09-30 06:29:37 +02:00
erikinkinen referenced this issue from erix/extop2026-09-30 06:29:41 +02:00
erikinkinen referenced this issue from erix/fatd2026-09-30 06:29:42 +02:00
erikinkinen referenced this issue from erix/fbcond2026-09-30 06:29:43 +02:00
erikinkinen referenced this issue from erix/hotplugd2026-09-30 06:29:44 +02:00
erikinkinen referenced this issue from erix/inputd2026-09-30 06:29:46 +02:00
erikinkinen referenced this issue from erix/integration2026-09-30 06:29:47 +02:00
erikinkinen referenced this issue from erix/irqd2026-09-30 06:29:49 +02:00
erikinkinen referenced this issue from erix/kernel2026-09-30 06:29:51 +02:00
erikinkinen referenced this issue from erix/keyd2026-09-30 06:29:51 +02:00
erikinkinen referenced this issue2026-09-30 06:29:52 +02:00
erikinkinen referenced this issue from erix/lib-block2026-09-30 06:29:53 +02:00
erikinkinen referenced this issue from erix/lib-bootstrap2026-09-30 06:29:54 +02:00
erikinkinen referenced this issue from erix/lib-capabi2026-09-30 06:29:55 +02:00
erikinkinen referenced this issue from erix/lib-driver2026-09-30 06:29:55 +02:00
erikinkinen referenced this issue from erix/lib-input2026-09-30 06:29:56 +02:00
erikinkinen referenced this issue from erix/lib-interrupt2026-09-30 06:29:57 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-09-30 06:29:58 +02:00
erikinkinen referenced this issue from erix/lib-log2026-09-30 06:29:58 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-09-30 06:29:59 +02:00
erikinkinen referenced this issue from erix/lib-service2026-09-30 06:30:00 +02:00
erikinkinen referenced this issue from erix/lib-stdio2026-09-30 06:30:00 +02:00
erikinkinen referenced this issue from erix/lib-time2026-09-30 06:30:01 +02:00
erikinkinen referenced this issue from erix/lib-tty2026-09-30 06:30:02 +02:00
erikinkinen referenced this issue from erix/lib-vfs2026-09-30 06:30:02 +02:00
erikinkinen referenced this issue from erix/loaderd2026-09-30 06:30:03 +02:00
erikinkinen referenced this issue from erix/logd2026-09-30 06:30:05 +02:00
erikinkinen referenced this issue from erix/memd2026-09-30 06:30:05 +02:00
erikinkinen referenced this issue from erix/named2026-09-30 06:30:05 +02:00
erikinkinen referenced this issue from erix/pagerd2026-09-30 06:30:06 +02:00
erikinkinen referenced this issue from erix/posixd2026-09-30 06:30:06 +02:00
erikinkinen referenced this issue from erix/powerboxd2026-09-30 06:30:07 +02:00
erikinkinen referenced this issue from erix/probed2026-09-30 06:30:07 +02:00
erikinkinen referenced this issue from erix/procd2026-09-30 06:30:08 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-09-30 06:30:08 +02:00
erikinkinen referenced this issue from erix/rootd2026-09-30 06:30:09 +02:00
erikinkinen referenced this issue from erix/seriald2026-09-30 06:30:09 +02:00
erikinkinen referenced this issue from erix/timed2026-09-30 06:30:10 +02:00
erikinkinen referenced this issue from erix/ttyd2026-09-30 06:30:10 +02:00
erikinkinen referenced this issue from erix/vfsd2026-09-30 06:30:11 +02:00
erikinkinen referenced this issue from erix/vspaced2026-09-30 06:30:12 +02:00