The linker/loader shared objects must exist inside the jail for things
to function properly.  These files aren't picked up by the ldd import
loop as the output format of ldd differs for this special library.
Copy it in explicitly.

Signed-off-by: Ben Walton <bwal...@artsci.utoronto.ca>
---
 mkchroot.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mkchroot.sh b/mkchroot.sh
index e765e2f..ba141b9 100755
--- a/mkchroot.sh
+++ b/mkchroot.sh
@@ -136,6 +136,10 @@ for prog in $scp_path $sftp_server_path $rssh_path 
$chroot_helper_path; do
        done
 done
 
+# the loop above doesn't grab ld-linux which is needed by every binary
+echo "Copying the linker loader (ld-linux...)"
+cp -p /lib/ld-* "$jail_dir/lib"
+
 echo "copying name service resolution libraries..."
 tar -cf - /lib/libnss*_files* | tar -C "$jail_dir" -xvf - |sed 's/^/\t/'
 
-- 
1.7.4.1


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to