Bug #118 » jailed-kern.patch
kern_jail.c 19 Mar 2006 20:26:29 -0000 | ||
---|---|---|
SYSCTL_OID(_jail, OID_AUTO, list, CTLTYPE_STRUCT | CTLFLAG_RD, NULL, 0,
|
||
sysctl_jail_list, "S", "List of active jails");
|
||
static int
|
||
sysctl_jail_jailed(SYSCTL_HANDLER_ARGS)
|
||
{
|
||
struct proc *p = curthread->td_proc;
|
||
int error, injail;
|
||
injail = jailed(p->p_ucred);
|
||
error = SYSCTL_OUT(req, &injail, sizeof(injail));
|
||
return(error);
|
||
}
|
||
SYSCTL_PROC(_jail, OID_AUTO, jailed, CTLTYPE_INT | CTLFLAG_RD, NULL, 0,
|
||
sysctl_jail_jailed, "I", "Process in jail?");
|
||
void
|
||
prison_hold(struct prison *pr)
|
||
{
|
- « Previous
- 1
- 2
- Next »