chroot - change filesystem root
#include <unistd.h>
int chroot(const char* path);
chroot()
changes the filesystem root of the current process to a new directory specified by path
.
EPERM
: The current process does not have superuser privileges.EFAULT
: path
is not in readable memory.All of the usual path resolution errors may also occur.