[Bug 13364] rsyncd clips trims relative symlinks outside of source tree

samba-bugs at samba.org samba-bugs at samba.org
Wed Apr 4 16:30:41 UTC 2018


https://bugzilla.samba.org/show_bug.cgi?id=13364

--- Comment #1 from Dave Gordon <dg32768 at zoho.eu> ---
Comment on attachment 14099
  --> https://bugzilla.samba.org/attachment.cgi?id=14099
setup instructions and copier

This is a documented feature; see rsyncd.conf(5):

  munge_symlinks
    ...
    When this parameter is disabled on a writable module and "use chroot" is
    off (or the inside-chroot path is not "/"), incoming symlinks will be
    modified to drop a leading slash and to remove ".." path elements that
    rsync believes will allow a symlink to escape the module’s hierarchy.
    There are tricky ways to work around this, though, so you had better
    trust your users if you choose this combination of parameters.

Unless you want the symlinks to be usable on the server as well as the client,
why not enable munge-symlinks. That way the client will get back the same
out-of-tree symlink as it started with, even though it will have had a
different content while on the server.

.Dave.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list