Skip to content

test: pull file from path=/ module to close URV-4.a coverage gap - #5542

Merged
oferchen merged 1 commit into
masterfrom
test/urv-4a-path-root-file-pull
Jun 10, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/urv-4a-path-root-file-pull

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds run_daemon_pulls_file_from_root_path_module to close the URV-4.a coverage gap left by PR test: cover daemon runtime serving path = / without chroot #5532, which only exercised #list against a path = / module.
  • The new test pulls a deterministic file via rsync://127.0.0.1:port/root<absolute_tempdir>/source.txt against a [root] path = / use chroot = no read only = yes module and asserts byte-for-byte content match plus exactly one file copied.
  • Covers the upstream rsync 3.4.4 Support module chroot directives in the daemon #897 scenario end-to-end. oc-rsync replaces upstream's per-file secure_relative_open with module-rooted ServerConfig plus canonical-prefix validation so the upstream bug class does not reproduce, but the file-pull path through a path = / module was previously uncovered by an integration test.
  • Test-only change; no production code modified.

Test plan

  • CI fmt+clippy passes.
  • CI nextest (stable) passes on Linux, including the new test.
  • CI macOS / Windows / musl matrices remain green (test is #[cfg(unix)] so Windows skips it).

PR #5532 added run_daemon_serves_module_with_root_path_no_chroot which
only exercises #list against a `path = /` module. The upstream rsync
3.4.4 #897 scenario was specifically about reading a file from such a
module. This test pulls a deterministic file via
rsync://127.0.0.1:port/root<absolute_tempdir>/source.txt against a
`[root] path = / use chroot = no read only = yes` module and asserts
the destination matches the source byte-for-byte.

The upstream bug class does not reproduce in oc-rsync because the
per-file `secure_relative_open` check is replaced with module-rooted
ServerConfig plus canonical-prefix validation, but the end-to-end
file-pull path was previously uncovered by an integration test.
@github-actions github-actions Bot added the test label Jun 10, 2026
oferchen added a commit that referenced this pull request Jun 10, 2026
Group PRs #5510, #5516, #5519, #5520, #5523, #5525-#5544 by shared root
cause rather than by Stream bucket. Seven clusters surface; the parser-
stores-string and field-vs-method shadowing clusters cover the largest
share of the series, and the receiver-driver wiring-parity gap explains
the NDX_DEL_STATS goodbye misses in both #5536 and #5542. Includes a
defense-in-depth audit mapping each cluster onto the rust-landlock
ruleset wired at crates/fast_io/src/landlock.rs.

Doc-only; no code paths touched.
oferchen added a commit that referenced this pull request Jun 10, 2026
Group PRs #5510, #5516, #5519, #5520, #5523, #5525-#5544 by shared root
cause rather than by Stream bucket. Seven clusters surface; the parser-
stores-string and field-vs-method shadowing clusters cover the largest
share of the series, and the receiver-driver wiring-parity gap explains
the NDX_DEL_STATS goodbye misses in both #5536 and #5542. Includes a
defense-in-depth audit mapping each cluster onto the rust-landlock
ruleset wired at crates/fast_io/src/landlock.rs.

Doc-only; no code paths touched.
@oferchen
oferchen merged commit d8c6cad into master Jun 10, 2026
68 of 69 checks passed
@oferchen
oferchen deleted the test/urv-4a-path-root-file-pull branch June 10, 2026 09:30
oferchen added a commit that referenced this pull request Aug 24, 2026
Group PRs #5510, #5516, #5519, #5520, #5523, #5525-#5544 by shared root
cause rather than by Stream bucket. Seven clusters surface; the parser-
stores-string and field-vs-method shadowing clusters cover the largest
share of the series, and the receiver-driver wiring-parity gap explains
the NDX_DEL_STATS goodbye misses in both #5536 and #5542. Includes a
defense-in-depth audit mapping each cluster onto the rust-landlock
ruleset wired at crates/fast_io/src/landlock.rs.

Doc-only; no code paths touched.
oferchen added a commit that referenced this pull request Aug 24, 2026
PR #5532 added run_daemon_serves_module_with_root_path_no_chroot which
only exercises #list against a `path = /` module. The upstream rsync
3.4.4 #897 scenario was specifically about reading a file from such a
module. This test pulls a deterministic file via
rsync://127.0.0.1:port/root<absolute_tempdir>/source.txt against a
`[root] path = / use chroot = no read only = yes` module and asserts
the destination matches the source byte-for-byte.

The upstream bug class does not reproduce in oc-rsync because the
per-file `secure_relative_open` check is replaced with module-rooted
ServerConfig plus canonical-prefix validation, but the end-to-end
file-pull path was previously uncovered by an integration test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant