Repository navigation
test: pull file from path=/ module to close URV-4.a coverage gap - #5542
Merged
Merged
Conversation
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.
2 tasks
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
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.
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
run_daemon_pulls_file_from_root_path_moduleto close the URV-4.a coverage gap left by PR test: cover daemon runtime serving path = / without chroot #5532, which only exercised#listagainst apath = /module.rsync://127.0.0.1:port/root<absolute_tempdir>/source.txtagainst a[root] path = / use chroot = no read only = yesmodule and asserts byte-for-byte content match plus exactly one file copied.secure_relative_openwith module-rootedServerConfigplus canonical-prefix validation so the upstream bug class does not reproduce, but the file-pull path through apath = /module was previously uncovered by an integration test.Test plan
fmt+clippypasses.nextest (stable)passes on Linux, including the new test.#[cfg(unix)]so Windows skips it).