Go to the previous, next section.

chroot

SYNOPSIS

int chroot(const char *path);

PARAMETERS

path: [in] points to the new root.

DESCRIPTION

Changes the root directory for the current task and all its children to the path specified by path. This operation is privilegied and only the superuser can invoke it successfully.

RETURN VALUE

On success zero is returned. On error, -1 is returned and errno is set to one of the following values:

Go to the previous, next section.