Skip to content

feat: implement daemon chroot and privilege dropping - #2382

Merged
oferchen merged 1 commit into
masterfrom
feature/daemon-chroot-privilege-v2
Feb 21, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/daemon-chroot-privilege-v2

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add privilege.rs implementing chroot jail and POSIX privilege dropping (setgroups/setgid/setuid)
  • Wire into module_access.rs after auth but before transfer, matching upstream clientserver.c:rsync_module()
  • After chroot, adjust effective module path to "/" for server config
  • All Unix code gated with #[cfg(unix)], no-op stubs on other platforms

Test plan

  • Unit tests for to_c_path and no-op behavior
  • Clippy clean, fmt clean
  • CI: all platforms

@github-actions github-actions Bot added the enhancement New feature or request label Feb 21, 2026
@oferchen
oferchen merged commit 3a020e5 into master Feb 21, 2026
8 of 9 checks passed
@oferchen
oferchen deleted the feature/daemon-chroot-privilege-v2 branch February 21, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant