No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mkchroot.diff 1.5KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff --git a/mkchroot.sh b/mkchroot.sh
  2. index 8bc1ecc..971b49b 100755
  3. --- a/mkchroot.sh
  4. +++ b/mkchroot.sh
  5. @@ -96,11 +96,12 @@ fi
  6. # copy SSH files
  7. scp_path="/usr/bin/scp"
  8. +rsync_path="/usr/bin/rsync"
  9. sftp_server_path="/usr/lib/openssh/sftp-server"
  10. rssh_path="/usr/bin/rssh"
  11. chroot_helper_path="/usr/lib/rssh/rssh_chroot_helper"
  12. -for jail_path in `dirname "$jail_dir$scp_path"` `dirname "$jail_dir$sftp_server_path"` `dirname "$jail_dir$chroot_helper_path"`; do
  13. +for jail_path in `dirname "$jail_dir$scp_path"` `dirname "$jail_dir$sftp_server_path"` `dirname "$jail_dir$chroot_helper_path"` `dirname "$jail_dir$rsync_path"`; do
  14. echo "setting up $jail_path"
  15. @@ -115,6 +116,8 @@ cp "$scp_path" "$jail_dir$scp_path" || \
  16. fail "Error copying $scp_path. Exiting." 5
  17. cp "$sftp_server_path" "$jail_dir$sftp_server_path" || \
  18. fail "Error copying $sftp_server_path. Exiting." 5
  19. +cp "$rsync_path" "$jail_dir$rsync_path" || \
  20. + fail "Error copying $rsync_path. Exiting." 5
  21. cp "$rssh_path" "$jail_dir$rssh_path" || \
  22. fail "Error copying $rssh_path. Exiting." 5
  23. cp "$chroot_helper_path" "$jail_dir$chroot_helper_path" || \
  24. @@ -147,7 +150,7 @@ cp "$chroot_helper_path" "$jail_dir$chroot_helper_path" || \
  25. # either the first or the third column may contain a path
  26. #
  27. -for prog in $scp_path $sftp_server_path $rssh_path $chroot_helper_path \
  28. +for prog in $scp_path $sftp_server_path $rssh_path $chroot_helper_path $rsync_path \
  29. /lib/libnss_compat* /lib/libnss_files* /lib/*/libnss_compat* \
  30. /lib/*/libnss_files*; do
  31. if [ ! -f "$prog" ] ; then