[cs631apue] question about chroot(2)

yluo4 yluo4 at stevens.edu
Tue Nov 19 22:06:06 EST 2013


Hi,
   chroot(2) can change the root directory of a process to specified 
directory and then we can use realpath(3) or use  dirname() and 
basename() to solve the path problem easily.  But we don't have 
privilege to use chroot(2) in linux lab.  Does anyone have an easy way 
to solve the path problem?
   Thanks,
   Yulong


More information about the cs631apue mailing list