Skip to content

docs(audits): daemon chroot + privilege drop (#2129) - #3968

Merged
oferchen merged 1 commit into
masterfrom
docs/daemon-chroot-audit-2129
May 13, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/daemon-chroot-audit-2129

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Audit comparing oc-rsync daemon chroot and privilege-dropping behaviour against upstream rsync 3.4.1
  • Documents the two-stage privilege ladder (daemon-level and per-module), use chroot default handling, numeric ids interaction with chroot, munge symlinks safety check, path sanitization when chroot is disabled, and cross-platform differences
  • Identifies 9 gaps with risk assessment and concrete recommendations

Key findings

  • Daemon-level daemon chroot is parsed but never enforced (high severity)
  • Per-module uid/gid rejects name strings like nobody (medium)
  • No /./ inner-path chroot split support (medium)
  • use chroot defaults to true instead of upstream's auto-detect (medium)
  • Exec hooks spawn after chroot instead of before (medium)
  • Windows daemon has no privilege drop wired (medium)

Test plan

  • Verify audit accuracy against upstream clientserver.c line references
  • Confirm gap descriptions match current oc-rsync source

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 13, 2026
@oferchen
oferchen merged commit ed739c0 into master May 13, 2026
8 checks passed
@oferchen
oferchen deleted the docs/daemon-chroot-audit-2129 branch May 13, 2026 04:17
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