[BUG] Native directory context publication rejects valid operation lifetimes #23
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#23
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
Native exact-directory publication rejects valid enumeration and non-job metadata grants after successful provider acquisition because context installation requires the job-lifetime cwd purpose.
Reproduction
Source-derived reproduction, not executed: acquire a native exact directory through
resolve_powerbox_objectwithENUMERATEand an invocation lifetime, orREAD_METADATAwith an invocation lifetime.resolve_context_objectprepares a directory context,publish_context_objectpublishes the original candidate, andset_cwd_contextrejects the operation/lifetime. Existing native follow-up fixtures include these routes.Expected and actual behavior
Expected: publish the independently retained directory with its exact requested operation and lifetime. Only job-lifetime directory metadata grants may act as job cwd; enumeration must remain restricted to its existing operations.
Actual in source: context installation returns DENIED, publication maps this to cleanup uncertainty, and the preparation is retired instead of returning the requested grant. Runtime adapters treat the uncertainty as fatal. No runtime reproduction or execution pass is claimed.
Environment and identity
3f4a6414945914723dcd533ad90fb1db8782c199.e4e6cb58bb639cbac326043e818e52054b084f7e; runtime adoption of the current migration remains pending.Evidence and prior checks
Source inspection of
src/exact_objects/native.rs,src/cwd/native/publication.rs,src/handles_cwd.rsandsrc/exact_objects/native_followup_tests.rs. The directory context owns no additional grant; original counted scope custody and endpoint operation/lifetime checks must remain decisive. Tests/builds/CI observation remain deferred by instruction. Six positive, operation-negative, source-generation and cleanup controls are authored and unrun.Tracking
Related: #16 and #3. Repair context installation against the actual retained root/candidate, preserve existing endpoint operation and job-cwd checks, and keep resolver derivation bound to the original source generation.
Implemented in Vfsd ea701c13, with manual documentation. Context installation now verifies original scope generation and complete retained root/current evidence. Exact operation and lifetime are preserved; the separate job-cwd predicate still governs reports and resolver-owned teardown. Resolver scopes no longer copy path/cwd metadata, and current source custody is reauthenticated before descriptive reads or cloning. Six controls cover nine original purpose/lifetime combinations, source-independent custody, closure/reuse, write attenuation, pending cleanup and context installation. Tests/builds/CI remain deferred; this is source completion under the testing waiver, not executed validation.
erikinkinen referenced this issue2026-10-01 18:44:33 +02:00
erikinkinen referenced this issue from erix/integration2026-10-01 18:44:35 +02:00
erikinkinen referenced this issue2026-10-01 18:44:35 +02:00
erikinkinen referenced this issue from erix/docs2026-10-01 18:44:36 +02:00
erikinkinen referenced this issue from erix/integration2026-10-01 18:44:37 +02:00
erikinkinen referenced this issue from erix/posixd2026-10-01 18:44:37 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-10-01 18:44:38 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-10-01 18:44:38 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-10-01 18:44:38 +02:00
erikinkinen referenced this issue from erix/fatd2026-10-01 18:44:39 +02:00
erikinkinen referenced this issue from erix/exsh2026-10-01 18:44:40 +02:00
erikinkinen referenced this issue from erix/coreutils2026-10-01 18:44:40 +02:00