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 *
| 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 $
| 9 * $FreeBSD: head/sys/kern/kern_jail.c 57163 2000-02-12 13:41:56Z rwatson $
|
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>
| 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 <sys/sysctl.h>
|
23#include <net/if.h> 24#include <netinet/in.h> 25 26MALLOC_DEFINE(M_PRISON, "prison", "Prison structures"); 27
| 24#include <net/if.h> 25#include <netinet/in.h> 26 27MALLOC_DEFINE(M_PRISON, "prison", "Prison structures"); 28
|
| 29SYSCTL_NODE(, OID_AUTO, jail, CTLFLAG_RW, 0, 30 "Jail rules"); 31 32int jail_set_hostname_allowed = 1; 33SYSCTL_INT(_jail, OID_AUTO, set_hostname_allowed, CTLFLAG_RW, 34 &jail_set_hostname_allowed, 0, 35 "Processes in jail can set their hostnames"); 36
|
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 --- | 37int 38jail(p, uap) 39 struct proc *p; 40 struct jail_args /* { 41 syscallarg(struct jail *) jail; 42 } */ *uap; 43{ 44 int error;
--- 92 unchanged lines hidden --- |