sys_chroot [fs/open.c]
Changes root directory. This directory will be used for path names beginning with "/". The root directory is inherited by all children of the current process. Arguments
eax | 61
ebx | Pointer to a null-terminated string that specifies the new path.
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-EACCES` | `Search permission is denied on a component of the path prefix.`
`-EFAULT` | `ebx outside your accessible address space.`
`-EIO` | `An I/O error occurred.`
`-ELOOP` | `Too many symbolic links were encountered in resolving path.`
`-ENAMETOOLONG` | `Path too long.`
`-ENOMEM` | `Insufficient kernel memory was available.`
`-ENOTDIR` | `A component of path is not a directory.`
`-EPERM` | `The caller has insufficient privilege.`
Remarks Only a process with CAP_SYS_CHROOT capability may call sys_chroot. Compatibility n/a