Repository navigation
Support module chroot directives in the daemon - #897
Merged
oferchen merged 1 commit intoOct 22, 2025
Merged
Conversation
3 tasks
oferchen
added a commit
that referenced
this pull request
Jun 10, 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.
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
use chrootflag to daemon module definitions with absolute-path enforcement when enabled--modulehelper to honouruse chrootdirectives and add regression testsTesting