Package: rssh
Version: 2.3.2-13
Severity: important
Tags: patch

mkchroot.sh doesn't resolv the libaries needed by libnss_compat-2.11.2.so and 
maybe in the future other files

This line in the script should do the job, but it doesn't for Debian Squeeze:
tar -cf - /lib/libnss_compat* /lib/libnss_files* | tar -C "$jail_dir" -xvf - 
|sed 's/^/\t/'

Here is my solution for this issue in the "style" of the whole script:

#####

# tar -cf - /lib/libnss_compat* /lib/libnss_files* | tar -C "$jail_dir" -xvf - 
|sed 's/^/\t/'
for nss_lib in `ls /lib/libnss_compat* /lib/libnss_files*`; do
                mkdir -p "$jail_dir$(dirname $nss_lib)" || fail "Error creating 
$(dirname $nss_lib). Exiting" 6
                echo -e "\t$nss_lib"
                cp "$nss_lib" "$jail_dir$nss_lib" || fail "Error copying 
$nss_lib. Exiting" 6
                needed_libs_for_libs=`ldd $nss_lib | awk '$1 ~ /^\// {print $1} 
$3 ~ /^\// {print $3}'`
                for lib2 in $needed_libs_for_libs; do
                        mkdir -p "$jail_dir$(dirname $lib2)" || fail "Error 
creating $(dirname $lib2). Exiting" 6
                        echo -e "\t$lib2"
                        cp "$lib2" "$jail_dir$lib2" || fail "Error copying 
$lib2. Exiting" 6
                done
done

#####


-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rssh depends on:
ii  debconf [debconf-2.0] 1.5.36.1           Debian configuration management sy
ii  libc6                 2.11.2-10          Embedded GNU C Library: Shared lib
ii  openssh-server        1:5.5p1-6+squeeze1 secure shell (SSH) server, for sec

rssh recommends no packages.

Versions of packages rssh suggests:
pn  cvs                           <none>     (no description available)
pn  makejail                      <none>     (no description available)
pn  rdist                         <none>     (no description available)
pn  rsync                         <none>     (no description available)
pn  subversion                    <none>     (no description available)

-- Configuration Files:
/etc/rssh.conf changed:
logfacility = LOG_USER
umask = 022


-- debconf information:
* rssh/chroot_helper_setuid: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to