change working directory NAME chdir, fchdir - change working directory LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #in...change working directory NAME chdir, fchdir - change working directory LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #in......exploit that to get out of the chroot directory as well. The easiest way to do that is to chdir (2) to the to-be-moved directory, wait for it to be moved out, then open a path l…...g directory (unless it is on the old root directory), and thus it should be followed by a chdir("/") call. The following restrictions apply: • new_root and put_old must be direc…...cted disappearance of directories which are still being used. SEE ALSO rm (1), rmdir (1), chdir (2), chmod (2), mkdir (2), rename (2), unlink (2), unlinkat (2)...or the purpose of returning to it later. Opening the current directory (".") and calling fchdir (2) to return is usually a faster and more reliable alternative when sufficiently…...me as the name of the system call that it invokes. For example, glibc contains a function chdir () which invokes the underlying "chdir" system call. Often the glibc wrapper func…...he calling process no longer shares its root directory ( chroot (2)), current directory ( chdir (2)), or umask ( umask (2)) attributes with any other process. CLONE_NEWCGROUP (s…...of the filesystem, the current working directory, and the umask. Any call to chroot (2), chdir (2), or umask (2) performed by the calling process or the child process also affec…...of the filesystem, the current working directory, and the umask. Any call to chroot (2), chdir (2), or umask (2) performed by the calling process or the child process also affec…...of the filesystem, the current working directory, and the umask. Any call to chroot (2), chdir (2), or umask (2) performed by the calling process or the child process also affec…