man.bsd.lv manual page server

Manual Page Search Parameters

JAIL_ATTACH(2) System Calls Manual JAIL_ATTACH(2)

jail_attachattach current process to an existing jail

library “libc”

#include <sys/types.h>
#include <sys/jail.h>

int
jail_attach(int id);

The jail_attach system call attaches the current process to an existing jail referenced by id.

The argument is an int referencing the ID of the prison.

jail_attach() will fail if:

[]
The user is not the super user, or is already in a prison.
[]
The prison referenced by id does not exist.

chroot(2), jail(2), jail(8), jexec(8), jls(8)

The jail_attach() function call first appeared in FreeBSD 5.1 and subsequently appeared in DragonFly 1.1

The jail_attach man page was written by Paul Herman.

January 31, 2005 DragonFly-5.6.1