Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

What is the first line of the output of `ldd bash` and why is not required when setting a new root directory to use with chroot?

Writer Sebastian Wright

I am following a tutorial about how to use chroot and set up a jailed dir. The process is to copy bash and the libraries it depends on into the 'jail' dir. To find the libraries bash depends on I use the comand:

ldd /usr/bin/bash
#which outputs
linux-vdso.so.1 (0x00007ffd4cb6f000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f11c0bb5000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f11c098d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f11c0d5a000)

But whatever the first line of this output is, it is not required to be copied into the jail dir but all the files referenced on the other lines are. I would like to know why? And what is it?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy