[PATCH 4/5] Use a more general method for copying /etc/ld.* files to the jail
Brought to you by:
xystrus
From: Ben W. <bw...@ar...> - 2011-07-13 13:26:43
|
Use -pR when copying /etc/ld.* into the jail. Modern linux boxes may have /etc/ld.so.conf.d/ with files in that directory. We likely don't need them, but having them won't hurt. This makes the command run without error when the directory exists. Signed-off-by: Ben Walton <bw...@ar...> --- mkchroot.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mkchroot.sh b/mkchroot.sh index 5b91b51..e765e2f 100755 --- a/mkchroot.sh +++ b/mkchroot.sh @@ -148,7 +148,7 @@ echo "Setting up /etc in the chroot jail" mkdir -p "$jail_dir/etc" cp /etc/nsswitch.conf "$jail_dir/etc/" cp /etc/passwd "$jail_dir/etc/" -cp /etc/ld.* "$jail_dir/etc/" +cp -pR /etc/ld.* "$jail_dir/etc/" echo -e "Chroot jail configuration completed." echo -e "\nNOTE: if you are not using the passwd file for authentication," -- 1.7.4.1 |