Deleted Added
full compact
jail.h (194118) jail.h (194251)
1/*-
2 * Copyright (c) 1999 Poul-Henning Kamp.
3 * Copyright (c) 2009 James Gritton.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 1999 Poul-Henning Kamp.
3 * Copyright (c) 2009 James Gritton.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/sys/jail.h 194118 2009-06-13 15:39:12Z jamie $
27 * $FreeBSD: head/sys/sys/jail.h 194251 2009-06-15 18:59:29Z jamie $
28 */
29
30#ifndef _SYS_JAIL_H_
31#define _SYS_JAIL_H_
32
33#ifdef _KERNEL
34struct jail_v0 {
35 u_int32_t version;

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

166 LIST_HEAD(, prison) pr_children; /* (a) list of child jails */
167 LIST_ENTRY(prison) pr_sibling; /* (a) next in parent's list */
168 int pr_prisoncount; /* (a) number of child jails */
169 unsigned pr_allow; /* (p) PR_ALLOW_* flags */
170 int pr_enforce_statfs; /* (p) statfs permission */
171 char pr_domainname[MAXHOSTNAMELEN]; /* (p) jail domainname */
172 char pr_hostuuid[HOSTUUIDLEN]; /* (p) jail hostuuid */
173 unsigned long pr_hostid; /* (p) jail hostid */
28 */
29
30#ifndef _SYS_JAIL_H_
31#define _SYS_JAIL_H_
32
33#ifdef _KERNEL
34struct jail_v0 {
35 u_int32_t version;

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

166 LIST_HEAD(, prison) pr_children; /* (a) list of child jails */
167 LIST_ENTRY(prison) pr_sibling; /* (a) next in parent's list */
168 int pr_prisoncount; /* (a) number of child jails */
169 unsigned pr_allow; /* (p) PR_ALLOW_* flags */
170 int pr_enforce_statfs; /* (p) statfs permission */
171 char pr_domainname[MAXHOSTNAMELEN]; /* (p) jail domainname */
172 char pr_hostuuid[HOSTUUIDLEN]; /* (p) jail hostuuid */
173 unsigned long pr_hostid; /* (p) jail hostid */
174 struct vnet *pr_vnet; /* (c) network stack */
174};
175#endif /* _KERNEL || _WANT_PRISON */
176
177#ifdef _KERNEL
178/* Flag bits set via options */
179#define PR_PERSIST 0x00000001 /* Can exist without processes */
180#define PR_HOST 0x00000002 /* Virtualize hostname et al */
181#define PR_IP4_USER 0x00000004 /* Virtualize IPv4 addresses */
182#define PR_IP6_USER 0x00000008 /* Virtualize IPv6 addresses */
175};
176#endif /* _KERNEL || _WANT_PRISON */
177
178#ifdef _KERNEL
179/* Flag bits set via options */
180#define PR_PERSIST 0x00000001 /* Can exist without processes */
181#define PR_HOST 0x00000002 /* Virtualize hostname et al */
182#define PR_IP4_USER 0x00000004 /* Virtualize IPv4 addresses */
183#define PR_IP6_USER 0x00000008 /* Virtualize IPv6 addresses */
184#define PR_VNET 0x00000010 /* Virtual network stack */
183
184/* Internal flag bits */
185#define PR_REMOVE 0x01000000 /* In process of being removed */
186#define PR_IP4 0x02000000 /* IPv4 virtualized by this jail or */
187 /* an ancestor */
188#define PR_IP6 0x04000000 /* IPv6 virtualized by this jail or */
189 /* an ancestor */
190

--- 156 unchanged lines hidden ---
185
186/* Internal flag bits */
187#define PR_REMOVE 0x01000000 /* In process of being removed */
188#define PR_IP4 0x02000000 /* IPv4 virtualized by this jail or */
189 /* an ancestor */
190#define PR_IP6 0x04000000 /* IPv6 virtualized by this jail or */
191 /* an ancestor */
192

--- 156 unchanged lines hidden ---