The program vsftpd, running in a chroot jail, gives the following error:
/bin/vsftpd: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory.
Which of the following actions would fix the error?
A. The file /etc/ld.so.conf in the root filesystem must contain the path to the appropriate lib directory in the chroot jail
B. Create a symbolic link that points to the required library outside the chroot jail
C. Copy the required library to the appropriate lib directory in the chroot jail
D. Run the program using the command chroot and the option--static_libs
题解
「chroot」为「change root directory」,「chroot jail」就是把用户的根目录锁定(在某个目录下)的意思,借由「chroot」可以让用户无法触及到比根目录还要更上层的文件。
所以答案是选项「C」。
