[FEATURE] Forward permission evidence through original exact metadata endpoints #5
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/vfsd#5
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?
Problem and motivation
Native filesystem permission mediation needs explicit ownership, mode and ACL evidence from the original retained filesystem object. The private providers expose that evidence, but Vfsd exact metadata endpoints currently offer no route to it.
Proposed behavior and scope
Only original job-lifetime READ_METADATA directory endpoints serve selector-free snapshots and bounded ACL pages. Vfsd uses the retained mount/provider handle and fresh private correlation, checks framing, handle, kind, revision and range, then replaces private identifiers with caller request correlation and the live VFS record ID. It does not reopen paths, synthesize ACL absence or broaden another endpoint's operation ceiling. Unknown evidence stays unknown, refused staging is cleared, and original owned completion custody prevents refetch/replay after refusal. Actual buffer geometry bounds pages without a new complete-ACL limit; entries remain in existing staging while the fixed prefix is rewritten.
Eighteen controls are authored and unrun: five wire, five provider transport, seven real-dispatch and one owned-completion. The original transport interface is shared and native path codecs/resolver fixtures are split; changed code remains below 1,000 lines (maximum 898), with inline rustdoc and missing_docs retained. Component contracts and the technical manual are updated. Tests, builds, lint checks, rustdoc, VM/manual/profiler runs and CI observation remain deferred by user instruction. No pass, warning-free build or measured speedup is claimed.
Native permission enforcement remains open: trusted credentials, full ACL acquisition and actual operation-specific effects still need to be connected. Value-inode ACL payloads and ACL-aware persistent mutation also remain unfinished. Both complete EriX guest-build generations and the Rust/LLVM guest rebuild remain required and unproved. Phase completion is 16.22% weighted, 4.81% whole-item, with 20/460 parents and 435/895 sub-items complete.
Add selector-free exact VFS permission snapshots and revision-bound ACL pages. The exact receiver chooses the original retained directory handle. Only job-lifetime READ_METADATA directory endpoints accept these operations; read, write, enumerate and entry-mutation endpoints retain their existing ceilings. The snapshot describes this directory, never a caller-selected descendant.
Forward requests through the original mounted provider route with fresh internal request correlation. Validate snapshot handle and node kind and every ACL page's request, handle, revision, ordinal and bound before returning evidence. Publish Vfsd's monotonic exact-object ID in place of the private provider handle. This number remains descriptive and cannot select a different record. ACL page requests must match the endpoint's current object ID; each page is tied to its original provider revision. Consumers still validate complete count, ordering and mode correspondence across all pages.
Use shared checked codecs with disjoint VFS operation IDs and fixed framing. Bound page transfers by the existing response storage, not a new total-ACL limit. Clear refused provider staging. Unsupported providers explicitly refuse; never synthesize ownership, ACL absence or a policy verdict from legacy stat. Native request custody and one-shot completion remain in the existing owned exact dispatcher.
Authority, security and reliability
No path, mount selector, credential, provider endpoint or capability is accepted from the requester. Vfsd uses the exact record's retained provider handle and original mount. The native receiver proves route possession before operation admission. Snapshot revisions do not authorize effects or outlive object retirement. No metadata operation opens, re-resolves, truncates or grants an object. Compatibility deny-only policy and operation-specific conditional effects remain unfinished and must be wired separately.
Acceptance criteria
Checklist
Alternatives and tradeoffs
Broadening a write or read endpoint with metadata authority would violate its exact operation contract. Reopening a path would lose retained-object identity. Using legacy stat would mistake unsupported ownership or ACLs for known evidence. The bridge preserves the existing directory metadata scope and paged provider contract. It adds no metadata cache: providers retain their freshness checks and consumers retain complete-ACL obligations.
Tracking and rollout
Continue native permission mediation, building on ACL page transport. Coordinate shared ABI, Vfsd, manual, catalog adoption and phase completion. Existing provider and ordinary exact operations keep their encodings. Full native policy and EriX/toolchain guest builds remain required.
Related records and contracts
erikinkinen referenced this issue from erix/blockd2026-09-29 12:52:59 +02:00
erikinkinen referenced this issue from erix/coreutils2026-09-29 12:53:06 +02:00
erikinkinen referenced this issue from erix/crashd2026-09-29 12:53:14 +02:00
erikinkinen referenced this issue from erix/deviced2026-09-29 12:53:26 +02:00
erikinkinen referenced this issue from erix/docs2026-09-29 12:53:59 +02:00
erikinkinen referenced this issue from erix/drv-acpi2026-09-29 12:54:20 +02:00
erikinkinen referenced this issue from erix/drv-i80422026-09-29 12:54:26 +02:00
erikinkinen referenced this issue from erix/drv-ps2-keyboard2026-09-29 12:54:37 +02:00
erikinkinen referenced this issue from erix/drv-ps2-mouse2026-09-29 12:54:42 +02:00
erikinkinen referenced this issue from erix/drv-rtc-cmos2026-09-29 12:54:48 +02:00
erikinkinen referenced this issue from erix/drv-serial2026-09-29 12:54:58 +02:00
erikinkinen referenced this issue from erix/drv-virtio-block2026-09-29 12:55:09 +02:00
erikinkinen referenced this issue from erix/dynlinkd2026-09-29 12:55:18 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-09-29 12:55:27 +02:00
erikinkinen referenced this issue from erix/exsh2026-09-29 12:55:48 +02:00
erikinkinen referenced this issue from erix/extop2026-09-29 12:55:59 +02:00
erikinkinen referenced this issue from erix/fatd2026-09-29 12:56:13 +02:00
erikinkinen referenced this issue from erix/fbcond2026-09-29 12:56:26 +02:00
erikinkinen referenced this issue from erix/hotplugd2026-09-29 12:56:36 +02:00
erikinkinen referenced this issue from erix/inputd2026-09-29 12:56:39 +02:00
erikinkinen referenced this issue from erix/integration2026-09-29 12:56:46 +02:00
erikinkinen referenced this issue from erix/irqd2026-09-29 12:56:50 +02:00
erikinkinen referenced this issue from erix/kernel2026-09-29 12:57:06 +02:00
erikinkinen referenced this issue from erix/keyd2026-09-29 12:57:10 +02:00
erikinkinen referenced this issue from erix/launchd2026-09-29 12:57:14 +02:00
erikinkinen referenced this issue from erix/lib-block2026-09-29 12:57:20 +02:00
erikinkinen referenced this issue from erix/lib-bootstrap2026-09-29 12:57:27 +02:00
erikinkinen referenced this issue from erix/lib-capabi2026-09-29 12:57:35 +02:00
erikinkinen referenced this issue from erix/lib-driver2026-09-29 12:57:41 +02:00
erikinkinen referenced this issue from erix/lib-input2026-09-29 12:57:45 +02:00
erikinkinen referenced this issue from erix/lib-interrupt2026-09-29 12:57:47 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-09-29 12:57:49 +02:00
erikinkinen referenced this issue from erix/lib-log2026-09-29 12:57:52 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-09-29 12:57:54 +02:00
erikinkinen referenced this issue from erix/lib-service2026-09-29 12:57:55 +02:00
erikinkinen referenced this issue from erix/lib-stdio2026-09-29 12:57:56 +02:00
erikinkinen referenced this issue from erix/lib-time2026-09-29 12:57:57 +02:00
erikinkinen referenced this issue from erix/lib-tty2026-09-29 12:57:58 +02:00
erikinkinen referenced this issue from erix/lib-vfs2026-09-29 12:57:59 +02:00
erikinkinen referenced this issue from erix/loaderd2026-09-29 12:58:00 +02:00
erikinkinen referenced this issue from erix/logd2026-09-29 12:58:01 +02:00
erikinkinen referenced this issue from erix/memd2026-09-29 12:58:01 +02:00
erikinkinen referenced this issue from erix/named2026-09-29 12:58:02 +02:00
erikinkinen referenced this issue from erix/pagerd2026-09-29 12:58:04 +02:00
erikinkinen referenced this issue from erix/posixd2026-09-29 12:58:05 +02:00
erikinkinen referenced this issue from erix/powerboxd2026-09-29 12:58:07 +02:00
erikinkinen referenced this issue from erix/probed2026-09-29 12:58:08 +02:00
erikinkinen referenced this issue from erix/procd2026-09-29 12:58:09 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-09-29 12:58:10 +02:00
erikinkinen referenced this issue from erix/rootd2026-09-29 12:58:12 +02:00
erikinkinen referenced this issue from erix/seriald2026-09-29 12:58:14 +02:00
erikinkinen referenced this issue from erix/timed2026-09-29 12:58:15 +02:00
erikinkinen referenced this issue from erix/ttyd2026-09-29 12:58:17 +02:00
erikinkinen referenced this issue2026-09-29 12:58:19 +02:00
erikinkinen referenced this issue from erix/vspaced2026-09-29 12:58:20 +02:00