Repository navigation
docs(design): SEC-1.s recursive_unlinkat sandbox helper to unblock SEC-1.q - #4724
Merged
Merged
Conversation
…C-1.q 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
…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
Test plan