After I put a process in a chroot
jail, it can access libc.so
library that is outside of jail. Why or maybe how?
If we have a soft link referring to a file outside of jail, can we access the main file?
can we use chroot
in multi threaded applications? or if we change root directory from one thread, the root directory of the whole process will change?
I have read that chroot
function does not provide real secure environment, is there any alternative solution on Linux?
chroot
, it still has it open, just like it's own binary. However, chroot
is privileged operation, so the process calling it is probably going to change identity and exec the real process and that will not have access to libc.so
unless it's available in the chroot.chroot
.