Commit Graph
14 Commits
Author SHA1 Message Date
Andrew TridgellandGreg Kroah-Hartman 4da4a7ce1e io/xattrs/rsync-ssl: EOF-sentinel guard, xattr ndx guard, gnutls CA refusal
io.c only treats a short read as the EOF sentinel when the fd is still
open; xattrs.c never stores a -1 from find_matching_xattr() and guards
ndx < 0 in set_xattr; rsync-ssl refuses the gnutls backend without
RSYNC_SSL_CA_CERT.

Co-authored-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-22 09:21:59 +10:00
Andrew Tridgell 3e23f86857 batch/rsync-ssl: quote replay-script args and harden rsync-ssl
Quote and newline-escape the arguments written into the --write-batch replay
script so a crafted filename cannot inject shell, and tighten rsync-ssl's option
handling.
2026-06-21 18:25:28 +10:00
Andrew Tridgell 42eb7f925e rsync-ssl: validate helper hostnames and require a CA for stunnel mode
Validate the hostname passed to the rsync-ssl helper (reject option-injection
/ shell-metacharacter hostnames) and require a CA certificate in stunnel mode
so the server certificate is actually verified.

Tests: rsync-ssl-hostname-validation, rsync-ssl-stunnel-ca-required.
2026-06-15 15:24:42 +10:00
Fabian H 3337930292 add ssl/tls key option (#216)
Improves rsync-ssl configurability.
2021-09-26 16:44:00 -07:00
Fabian H 592c6bc3e5 add missing - in certopt (#210)
otherwise openssl will give an error and not accept is as argument
2021-08-16 15:52:39 -07:00
Matt McCutchen c3f7414c45 rsync-ssl: Verify the hostname in the certificate when using openssl. 2020-08-26 14:07:02 -07:00
Wayne Davison 27e88dec04 Use /usr/bin/env for increased portability. 2020-06-16 18:27:48 -07:00
Wayne Davison 6273153c5f Add preliminary gnutls support. 2020-06-15 11:19:36 -07:00
Wayne Davison 628dcceb8d Choose openssl before stunnel. 2020-06-15 10:41:08 -07:00
Wayne Davison 00ec415a69 Tweak the stunnel4 Verify config; tweak the rsync-ssl docs/usage. 2020-06-15 09:36:13 -07:00
Wayne Davison 13f81f4aa7 Tweak a usage message. 2020-06-12 10:20:33 -07:00
Wayne Davison de78dd685b Simplify the install of rsync-ssl by unifying 2 scripts. 2020-06-11 20:26:56 -07:00
Wayne Davison 888f4f9503 Put the rsync-ssl-rsh helper script into a lib dir. 2020-06-07 19:25:18 -07:00
Wayne Davison 6e962ac51e Eliminate .in for rsync-ssl. 2020-04-22 14:53:06 -07:00