I have to provide a few, reasonably complete, chrooted ssh accesses to a very small system where disk space is at a premium.
I was considering doing something along the lines:
mkdir -p newroot/usr newroot/home/user newroot/lib newroot/bin newroot/var mount -o bind,ro /bin newroot/bin mount -o bind,ro /lib newroot/lib mount -o bind,ro /usr newroot/usr
instead of the more traditional copy.
Is that an acceptable practice or am I opening exploitation avenues?