Skip to content

docs(audits): daemon chroot + uid/gid drop sequence (#2129) - #3896

Merged
oferchen merged 1 commit into
masterfrom
audits/daemon-chroot-uid-drop
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
audits/daemon-chroot-uid-drop

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit per-module privilege reduction against upstream rsync 3.4.1, confirming chroot precedes setgid/setuid in crates/platform/src/privilege.rs and crates/daemon/src/daemon/sections/privilege.rs.
  • Identify gaps: daemon chroot directive parsed but never invoked from the accept loop; setgroups([]) not called when gid is unset; chroot-test fallback missing; no seteuid companion call; no Linux capability bounding-set drop, PR_SET_NO_NEW_PRIVS, seccomp filter, or privilege-separation worker.
  • Provide remediation priorities ordered by effort and risk.

Closes #2129.

Test plan

  • No code changes; documentation-only PR.
  • CI: fmt+clippy, nextest, Windows, macOS, Linux musl pass.

Audit per-module privilege reduction against upstream rsync 3.4.1.
Documents ordering parity (chroot before setgid/setuid), supplementary-
group drop, and gaps around `daemon chroot` directive wiring,
capability bounding, NO_NEW_PRIVS, seccomp, and privilege-separation
worker.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 4ea4c20 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the audits/daemon-chroot-uid-drop branch May 8, 2026 03:47
oferchen added a commit that referenced this pull request May 18, 2026
Audit per-module privilege reduction against upstream rsync 3.4.1.
Documents ordering parity (chroot before setgid/setuid), supplementary-
group drop, and gaps around `daemon chroot` directive wiring,
capability bounding, NO_NEW_PRIVS, seccomp, and privilege-separation
worker.
oferchen added a commit that referenced this pull request Aug 24, 2026
Audit per-module privilege reduction against upstream rsync 3.4.1.
Documents ordering parity (chroot before setgid/setuid), supplementary-
group drop, and gaps around `daemon chroot` directive wiring,
capability bounding, NO_NEW_PRIVS, seccomp, and privilege-separation
worker.
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