Deleted Added
full compact
kern_jail.c (61235) kern_jail.c (68024)
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 61235 2000-06-04 04:28:31Z rwatson $
9 * $FreeBSD: head/sys/kern/kern_jail.c 68024 2000-10-31 01:34:00Z 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>

--- 16 unchanged lines hidden (view full) ---

34 &jail_set_hostname_allowed, 0,
35 "Processes in jail can set their hostnames");
36
37int jail_socket_unixiproute_only = 1;
38SYSCTL_INT(_jail, OID_AUTO, socket_unixiproute_only, CTLFLAG_RW,
39 &jail_socket_unixiproute_only, 0,
40 "Processes in jail are limited to creating UNIX/IPv4/route sockets only");
41
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>

--- 16 unchanged lines hidden (view full) ---

34 &jail_set_hostname_allowed, 0,
35 "Processes in jail can set their hostnames");
36
37int jail_socket_unixiproute_only = 1;
38SYSCTL_INT(_jail, OID_AUTO, socket_unixiproute_only, CTLFLAG_RW,
39 &jail_socket_unixiproute_only, 0,
40 "Processes in jail are limited to creating UNIX/IPv4/route sockets only");
41
42int jail_sysvipc_allowed = 0;
43SYSCTL_INT(_jail, OID_AUTO, sysvipc_allowed, CTLFLAG_RW,
44 &jail_sysvipc_allowed, 0,
45 "Processes in jail can use System V IPC primitives");
46
42int
43jail(p, uap)
44 struct proc *p;
45 struct jail_args /* {
46 syscallarg(struct jail *) jail;
47 } */ *uap;
48{
49 int error;

--- 94 unchanged lines hidden ---
47int
48jail(p, uap)
49 struct proc *p;
50 struct jail_args /* {
51 syscallarg(struct jail *) jail;
52 } */ *uap;
53{
54 int error;

--- 94 unchanged lines hidden ---