bproc_slave_chroot

Name

bproc_slave_chroot -- Request the slave daemon to perform a chroot

Synopsis

#include <sys/bproc.h>

int bproc_slave_chroot (int node, const char * path);

Arguments

node

The node you want to perform the chroot

path

The path to chroot to

Description

This call requests the slave daemon to perform a chroot to the path specified by path. It is the BProc equivalent to the standard chroot, which sets the base path for filename lookup.

Return Value

This call returns 0 on success and -1 on failure.

Errors

EPERM

You do not have root access

ENOMEM

Out of memory

E2BIG

path is too long.

EIO

I/O error