Repository navigation
docs(design): SEC-1.q DeleteFs trait sandbox follow-up (closes 6 GAPs from #4710) - #4711
Merged
Merged
Conversation
Opens SEC-1.q to track the DeleteFs trait-shape refactor that closes the six daemon-reachable path-based unlink/rmdir GAPs in RealDeleteFs identified by PR #4710's post-chain coverage audit. Documents the deferral rationale from SEC-1.g, sketches the parent-dirfd-bearing trait extension and recursive peel helper, and records the re-open triggers so the cleanup is tracked alongside SEC-1.r and SEC-1.s.
oferchen
force-pushed
the
docs/sec-1-q-delete-emitter-sandbox
branch
from
May 22, 2026 05:15
5d69e85 to
eb982ff
Compare
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…C-1.q (#4724) Opens SEC-1.s to track the recursive_unlinkat_via_sandbox_or_fallback helper called out by SEC-1.q (PR #4711) as the prerequisite for DeleteFs::remove_dir_all_at and by PR #4710's GAP row #27 as the missing Carrier piece for the --delete recursive fallback. Documents the proposed signature mirroring the existing *_via_sandbox_or_fallback family, the openat/fdopendir/readdir + fstatat-classify + unlinkat peel algorithm, cycle detection via (dev, ino) tracking, TOCTOU race handling for file-vs-dir swaps, fallback to std::fs::remove_dir_all when the sandbox is absent, upstream-equivalent error semantics from delete.c:48-176, the cross-platform plan, an 8-case test plan, an ~480 LoC effort estimate, and a three-step dispatch sequence keeping each PR self-contained. Docs-only: no implementation in this PR.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Opens SEC-1.q to track the DeleteFs trait-shape refactor that closes the six daemon-reachable path-based unlink/rmdir GAPs in RealDeleteFs identified by PR #4710's post-chain coverage audit. Documents the deferral rationale from SEC-1.g, sketches the parent-dirfd-bearing trait extension and recursive peel helper, and records the re-open triggers so the cleanup is tracked alongside SEC-1.r and SEC-1.s.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…C-1.q (#4724) Opens SEC-1.s to track the recursive_unlinkat_via_sandbox_or_fallback helper called out by SEC-1.q (PR #4711) as the prerequisite for DeleteFs::remove_dir_all_at and by PR #4710's GAP row #27 as the missing Carrier piece for the --delete recursive fallback. Documents the proposed signature mirroring the existing *_via_sandbox_or_fallback family, the openat/fdopendir/readdir + fstatat-classify + unlinkat peel algorithm, cycle detection via (dev, ino) tracking, TOCTOU race handling for file-vs-dir swaps, fallback to std::fs::remove_dir_all when the sandbox is absent, upstream-equivalent error semantics from delete.c:48-176, the cross-platform plan, an 8-case test plan, an ~480 LoC effort estimate, and a three-step dispatch sequence keeping each PR self-contained. Docs-only: no implementation in this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DeleteFstrait-shape refactor that closes six daemon-reachable path-based unlink/rmdir sites inRealDeleteFsflagged by PR docs(audit): SEC-1 path-syscall coverage audit -- post-chain GAPs survey #4710's post-chain audit (rows Split protocol negotiation into focused modules #22-Add coverage for legacy AUTHREQD parser edge cases #27).--deletetraversal (recursive peel has no single-helper shape; trait change ripples through every impl and caller; mock fake should stay path-based) and sketches the parent-dirfd-bearing trait extension plus arecursive_unlinkat_via_sandbox_or_fallbackhelper.--deletetraversal redirect; SEC-1.s open-helper landing; CVE-class disclosure).Test plan
git statusshows the new design doc only.