NAME
jail_attach
—
attach current process to an existing
jail
LIBRARY
library “libc”
SYNOPSIS
#include
<sys/types.h>
#include <sys/jail.h>
int
jail_attach
(int
id);
DESCRIPTION
Thejail_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.
ERRORS
jail_attach
() will fail if:
- [
EPERM
] - The user is not the super user, or is already in a prison.
- [
EINVAL
] - The prison referenced by
id
does not exist.
SEE ALSO
HISTORY
The jail_attach
() function call first
appeared in FreeBSD 5.1 and subsequently appeared in
DragonFly 1.1
AUTHORS
The jail_attach man page was written by Paul Herman.