[scponly] Build scponly on 64bit hosts

Michael Steinmann msl at calivia.com
Thu Feb 16 10:08:48 EST 2006


scponly fails to build on 64bit hosts due to missing 64bit library path
in configure. I have created two patches to build current scponly-4.6.

- configure.patch adds the /usr/lib64/ssh path


- setup_chroot.sh.in.patch adds the required 64bit
/lib64/ld-linux-x86-64.so.2 to the user jail

Symptom for this is a "unknown user" error when connecting with scp.
WinSCP and sftp both work without ld-linux-x86-64.so.2.

Built and tested on SLES9 x86_64.

HTH
--
mike


configure.patch
--- configure   2006-02-16 11:44:03.388524991 +0100
+++ configure.patched   2006-02-16 11:43:40.878829169 +0100
@@ -3244,7 +3244,7 @@
   ;;
   *)
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="`echo
"$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh:/usr/local/libexec"
| sed -e 's/:/ /'`"
+as_dummy="`echo
"$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib64/ssh:/usr/lib/ssh:/usr/local/libexec"
| sed -e 's/:/ /'`"
 for as_dir in $as_dummy
 do
   IFS=$as_save_IFS
@@ -4232,7 +4232,7 @@
   ;;
   *)
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="`echo
"$PATH:/usr/lib:/usr/lib/ssh:/usr/libexec/openssh:/usr/libexec:/usr/local/libexec"
| sed -e 's/:/ /'`"
+as_dummy="`echo
"$PATH:/usr/lib:/usr/lib64/ssh:/usr/lib/ssh:/usr/libexec/openssh:/usr/libexec:/usr/local/libexec"
| sed -e 's/:/ /'`"
 for as_dir in $as_dummy
 do
   IFS=$as_save_IFS


setup_chroot.sh.in.patch
--- setup_chroot.sh.in  2006-02-16 11:41:45.619623434 +0100
+++ setup_chroot.sh.in.patched  2006-02-16 11:41:37.415462686 +0100
@@ -79,7 +79,7 @@
 #
 #      we also need to add some form of ld.so, here are some good guesses.
 #
-LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1
/usr/libexec/ld.so /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1"
+LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1
/usr/libexec/ld.so /lib64/ld-linux-x86-64.so.2 /lib/ld-linux.so.2
/usr/libexec/ld-elf.so.1"
 for lib in $LDSO_LIST; do
        if [ -f $lib ]; then
                LDSOFOUND=1;





More information about the scponly mailing list