My previous messages are all of the changes in the Debian package from the
stock rssh except one, and this last is probably Debian-specific.  In
mkchroot.sh, /lib/libnss_files* and /lib/libnss1_files* are copied into
the chroot.  Debian doesn't have /lib/libnss1_files* and its default
nsswitch.conf configuration requires /lib/libnss_compat* instead.

We're currently applying this patch:

Index: rssh/mkchroot.sh
===================================================================
--- rssh.orig/mkchroot.sh       2004-06-03 18:25:11.000000000 -0700
+++ rssh/mkchroot.sh    2006-04-21 20:02:45.000000000 -0700
@@ -137,7 +137,7 @@ for prog in $scp_path $sftp_server_path 
 done
 
 echo "copying name service resolution libraries..."
-tar -cf - /lib/libnss_files* /lib/libnss1_files* | tar -C "$jail_dir" -xvf - 
|sed 's/^/\t/'
+tar -cf - /lib/libnss_compat* /lib/libnss_files* | tar -C "$jail_dir" -xvf - 
|sed 's/^/\t/'
 
 #####################################################################
 #

If you're interested, I'd be happy to rework this into an if/then
statement based on the existence of /lib/libnss1_files* and the presence
of compat in /etc/nsswitch.conf.

Ideally, I'd like to eliminate any local patches in the Debian package,
but at the least I'd like to get the changes down to a known and harmless
set that doesn't make you feel like Debian rssh is going in some weird
direction that isn't what you'd want.  Any feedback towards that end would
be gratefully welcomed.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to