Skip to content

docs(design): SEC-1.q DeleteFs trait sandbox follow-up (closes 6 GAPs from #4710) - #4711

Merged
oferchen merged 1 commit into
masterfrom
docs/sec-1-q-delete-emitter-sandbox
May 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/sec-1-q-delete-emitter-sandbox

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Opens SEC-1.q as a new follow-up to track the DeleteFs trait-shape refactor that closes six daemon-reachable path-based unlink/rmdir sites in RealDeleteFs flagged 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).
  • Documents why SEC-1.g punted the --delete traversal (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 a recursive_unlinkat_via_sandbox_or_fallback helper.
  • Records estimated effort (~300-500 LoC), cross-platform posture (Unix-only helper; Windows stays path-based per SEC-1.l NTFS handle audit), and explicit re-open triggers (audit demonstrating a --delete traversal redirect; SEC-1.s open-helper landing; CVE-class disclosure).

Test plan

  • Doc-only change; git status shows the new design doc only.
  • No code touched; CI fmt/clippy/nextest checks should pass unchanged.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 22, 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
oferchen force-pushed the docs/sec-1-q-delete-emitter-sandbox branch from 5d69e85 to eb982ff Compare May 22, 2026 05:15
@oferchen
oferchen merged commit 26a7fe8 into master May 22, 2026
9 checks passed
@oferchen
oferchen deleted the docs/sec-1-q-delete-emitter-sandbox branch May 22, 2026 06:39
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant