Skip to content

docs: align the upstream design notes and oracle script with rsync 3.5.1 - #8311

Closed
oferchen wants to merge 3 commits into
masterfrom
docs/upstream-351-alignment
Closed

oferchen wants to merge 3 commits into
masterfrom
docs/upstream-351-alignment

Conversation

@oferchen

@oferchen oferchen commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Re-check tools/ci/build_old_rsync_oracle.sh against rsync 3.5.1's old_versions/. The script still holds: the tarball ships only README.md and build_static.sh. Its citations now point at 3.5.1, and it names both oracle consumers: daemon-symlink-escape-matrix reads rsync_3.2.7, and daemon-auth-digest-floor reads rsync_3.1.3 (testsuite/daemon-auth-digest-floor_test.py:104-108).
  • Rename the three docs/design/upstream-3.5.0-* notes to upstream-<topic>.md so they follow the pinned release. Every claim was re-checked against 3.5.1. syscall.c citations were retargeted by content with tools/ci/citation_retarget.py; the 3 flagged citations and 1 ambiguous one were resolved by hand. support/rrsync line references were remapped using diff. The notes now describe what 3.5.1 changed:
    • the --files-from ownership walk (syscall.c:149-154, :3617-3642, options.c:2663);
    • the new final argument to abspath_outside_confinement() (syscall.c:245, :286-290);
    • /dev/fd and /dev/std* fd pins (syscall.c:176-215);
    • the user-namespace exemption (syscall.c:489-498) and kernel pseudo-paths (syscall.c:519-552);
    • the FERROR line for an untrusted symlink owner (syscall.c:499-506);
    • rrsync root-relative arguments (support/rrsync:697-704, NEWS.md:28-30) and its two new tests.
  • Stale oc-rsync claims are gone: --drop-D and --confine-root now exist (crates/cli/src/frontend/server/flags.rs), and the streams.rs:419 line it cited is no longer that code.

Evidence

  • exclude.c is byte-identical between 3.5.0 and 3.5.1 (cmp), so the filter-provenance note keeps its lines and its 3.5.0 probes still hold.
  • packaging/cull-options --python was run against 3.5.1's options.c. The diff against the table shipped in support/rrsync is the same three entries as on 3.5.0: compress-threads, dirs and debug: -1.
  • legacy_oracle_requirements() from tools/ci/run_upstream_testsuite.sh, run on the 3.5.1 tree, lists 3.1.3 daemon-auth-digest-floor and 3.2.7 daemon-symlink-escape-matrix.

Test plan

  • cargo xtask citations: exit 0 (14205 citations across 5552 files).
  • python3 -m unittest tools.tests.test_citation_retarget tools.tests.test_path_site_sweep tools.tests.test_uts351_manifests: OK.
  • bash -n tools/ci/build_old_rsync_oracle.sh.
  • CI: fmt + clippy, nextest (stable), Windows, macOS, Linux musl.

Coordination

  • Epic: task 441 (children 442, 443).
  • Depends on: none.

Conventional commit prefix

  • docs: - documentation only (plus comment-only path updates in one .rs and two tools files).

Pre-merge checklist

  • Conventional commit prefix on PR title matches the change category.
  • cargo fmt --all not needed (one comment line changed in merge.rs).
  • CHANGELOG.md updated.
  • No references to internal tooling or non-human authoring aids; hyphens, not em-dashes, in new text.

Re-check every upstream citation in build_old_rsync_oracle.sh against the 3.5.1 tarball: name both oracle consumers (daemon-symlink-escape-matrix reads rsync_3.2.7, daemon-auth-digest-floor reads rsync_3.1.3), cite runtests.py:621, README.md:13/:59/:74 and build_static.sh:22/:33, and drop the stale ../rsync.4 default.
Drop the release from the three upstream-3.5.0-* design note names so they track the pinned release, and re-check every claim against 3.5.1: syscall.c citations retargeted by content, plus the 3.5.1 changes to the confinement model (files-from ownership walk, the final flag in abspath_outside_confinement, /dev/fd and /dev/std* pins, user-namespace and kernel pseudo-path handling, the untrusted-owner FERROR line) and to rrsync (root-relative arguments, two new tests). exclude.c is byte-identical, so the filter provenance note keeps its lines; the cull-options table drift re-measures to the same three entries on 3.5.1.
@oferchen

oferchen commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Folded into #8314 (merge commit on test/upstream-351-oracle) so the 3.5.1 alignment lands in one CI run.

@oferchen oferchen closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant