samba-bugs at samba.org
2012-Oct-04 18:50 UTC
[Bug 9246] New: Add chroot enablement option to rsync client
https://bugzilla.samba.org/show_bug.cgi?id=9246 Summary: Add chroot enablement option to rsync client Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: bmn at mailinator.com QAContact: rsync-qa at samba.org When running rsync on a directory that is meant to be a chroot, rsync will currently not correctly resolve symlinks with absolute targets because obviously, those targets are meant to be interpreted from inside the chroot. Because of that, copy-unsafe-links and safe-links cannot be used properly in those cases. It would be nice if there was an option to make the rsync client "chroot aware". -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2012-Oct-07 18:45 UTC
[Bug 9246] Add chroot enablement option to rsync client
https://bugzilla.samba.org/show_bug.cgi?id=9246 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Severity|normal |enhancement --- Comment #1 from Wayne Davison <wayned at samba.org> 2012-10-07 18:45:04 UTC --- One potential solution: rsync -aiv --rsync-path="chroot /chroot-path /usr/bin/rsync" src localhost:/dest That does require you to have a working rsync inside the chroot, while a --chroot option would not. If you don't have working ssh to localhost (or don't want to bother with localhost encryption), add "-e lsh" to the command and put the "lsh" shell script from the support dir on your path. Make sure it is a recent copy, like this one: http://rsync.samba.org/ftp/unpacked/rsync/support/lsh If you want to make use of lsh's user options, you should instead put lsh into the chroot (along with rsync) and do this: rsync -aive "chroot /chroot-path /usr/local/bin/lsh" src user at localhost:/dest I'm leaving this bug marked as an enhancement in case we want to add a --chroot option that makes it do a chroot internally. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Possibly Parallel Threads
- [Bug 8198] New: rsync does not set TZ variable after chroot(), which confuses logging timestamps
- [Bug 11013] New: [patch] Mention that privileges are dropped, when "use chroot" is enabled in rsyncd.conf manpage
- [Bug 12817] New: [PATCH] Allow daemon itself to chroot
- [Bug 11166] New: running with -vvv causes a hang
- [Bug 9560] New: drop-cache option