The scp program requires /dev/null.  Ensure we create it inside the
jail using the major/minor device numbers of the real device.

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

diff --git a/mkchroot.sh b/mkchroot.sh
index d2abae5..5b91b51 100755
--- a/mkchroot.sh
+++ b/mkchroot.sh
@@ -161,6 +161,8 @@ echo -e "you may need to copy some of the /lib/libnss_* 
files into the jail.\n"
 #
 
 mkdir -p "$jail_dir/dev"
+echo "Creating /dev/null inside the jail."
+mknod -m 0666 "${jail_dir}/dev/null" c $(stat --format "%t %T" /dev/null)
 
 echo -e "NOTE: you must MANUALLY edit your syslog rc script to start syslogd"
 echo -e "with appropriate options to log to $jail_dir/dev/log.  In most cases,"
-- 
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