[PATCH 3/5] Make sure we create a /dev/null device in the jail.
Brought to you by:
xystrus
From: Ben W. <bw...@ar...> - 2011-07-13 13:03:06
|
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 <bw...@ar...> --- 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 |