chdir / chroot after pre-xfer ?
wayned at samba.org
Thu Nov 20 00:53:13 GMT 2008
On Wed, Nov 19, 2008 at 10:13:41PM +0100, AZ 9901 wrote:
> Could it be possible to force rsyncd to do the chdir() after pre-xfer ?
That is not currently possible because rsync wants to tell the pre-xfer
process about the options that the client sent (such as what module is
being requested), and that conversation happens after the chroot is all
setup and the protocol data is already flowing. It might be possible to
twiddle this, but it could be less secure, so I don't wish to change it.
Your best bet is to make the root of the module a local dir and mount a
subdir inside that local directory based on the pre-xfer data.
More information about the rsync