Deleted Added
sdiff udiff text old ( 51398 ) new ( 57163 )
full compact
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $FreeBSD: head/sys/kern/kern_jail.c 51398 1999-09-19 08:36:03Z phk $
10 *
11 */
12
13#include <sys/param.h>
14#include <sys/types.h>
15#include <sys/kernel.h>
16#include <sys/systm.h>
17#include <sys/errno.h>
18#include <sys/sysproto.h>
19#include <sys/malloc.h>
20#include <sys/proc.h>
21#include <sys/jail.h>
22#include <sys/socket.h>
23#include <net/if.h>
24#include <netinet/in.h>
25
26MALLOC_DEFINE(M_PRISON, "prison", "Prison structures");
27
28int
29jail(p, uap)
30 struct proc *p;
31 struct jail_args /* {
32 syscallarg(struct jail *) jail;
33 } */ *uap;
34{
35 int error;

--- 92 unchanged lines hidden ---