diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-09-19 22:37:29 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-09-20 00:08:16 -0700 |
commit | 97e02bf21a119971e258550bdcd3e56096bdd7b2 (patch) | |
tree | 7161d1327f754f390e3007938c04c3b4cd246ae0 /daemon-parm.txt | |
parent | 77d762ced8bae1dac1de48b0a3814a49a1371c99 (diff) | |
download | rsync-97e02bf21a119971e258550bdcd3e56096bdd7b2.tar.gz |
Some "use chroot" improvements.
- The sanitize_paths variable was set too often. It only needs to be set
when the "inner" path is not "/". This change avoids sanitizing &
munging things for a path=/ module just because chroot is off.
- The default for "use chroot" is now "unset" instead of "true". When
unset it checks if chrooting works, and if not, it proceeds with a
sanitized copy instead of totally failing to work. This makes it
easier to setup a non-root rsync daemon, for instance. It will have
no effect on a typical Linux root-run daemon where the default will
continue to use chroot (because chrooting works). A config file can
explicitly set "use chroot = true | false" to force the choice.
- Try to improve the "use chroot" manpage.
Diffstat (limited to 'daemon-parm.txt')
-rw-r--r-- | daemon-parm.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon-parm.txt b/daemon-parm.txt index 3b438b02..69034173 100644 --- a/daemon-parm.txt +++ b/daemon-parm.txt @@ -60,9 +60,9 @@ BOOL read_only True BOOL reverse_lookup True BOOL strict_modes True BOOL transfer_logging False -BOOL use_chroot True BOOL write_only False BOOL3 munge_symlinks Unset BOOL3 numeric_ids Unset BOOL3 open_noatime Unset +BOOL3 use_chroot Unset |