Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/jail.h
Context not available. | |||||
#define JAIL_UPDATE 0x02 /* Update parameters of existing jail */ | #define JAIL_UPDATE 0x02 /* Update parameters of existing jail */ | ||||
#define JAIL_ATTACH 0x04 /* Attach to jail upon creation */ | #define JAIL_ATTACH 0x04 /* Attach to jail upon creation */ | ||||
#define JAIL_DYING 0x08 /* Allow getting a dying jail */ | #define JAIL_DYING 0x08 /* Allow getting a dying jail */ | ||||
#define JAIL_SET_MASK 0x0f | #define JAIL_SET_MASK 0x0f /* JAIL_DYING is deprecated/ignored here */ | ||||
#define JAIL_GET_MASK 0x08 | #define JAIL_GET_MASK 0x08 | ||||
#define JAIL_SYS_DISABLE 0 | #define JAIL_SYS_DISABLE 0 | ||||
Context not available. | |||||
struct prison_racct *pr_prison_racct; /* (c) racct jail proxy */ | struct prison_racct *pr_prison_racct; /* (c) racct jail proxy */ | ||||
void *pr_sparep[3]; | void *pr_sparep[3]; | ||||
int pr_childcount; /* (a) number of child jails */ | int pr_childcount; /* (a) number of child jails */ | ||||
int pr_childmax; /* (p) maximum child jails */ | int pr_childmax; /* (a) maximum child jails */ | ||||
unsigned pr_allow; /* (p) PR_ALLOW_* flags */ | unsigned pr_allow; /* (p) PR_ALLOW_* flags */ | ||||
int pr_securelevel; /* (p) securelevel */ | int pr_securelevel; /* (p) securelevel */ | ||||
int pr_enforce_statfs; /* (p) statfs permission */ | int pr_enforce_statfs; /* (p) statfs permission */ | ||||
Context not available. | |||||
/* primary jail address. */ | /* primary jail address. */ | ||||
/* Internal flag bits */ | /* Internal flag bits */ | ||||
#define PR_REMOVE 0x01000000 /* In process of being removed */ | |||||
#define PR_IP4 0x02000000 /* IPv4 restricted or disabled */ | #define PR_IP4 0x02000000 /* IPv4 restricted or disabled */ | ||||
/* by this jail or an ancestor */ | /* by this jail or an ancestor */ | ||||
#define PR_IP6 0x04000000 /* IPv6 restricted or disabled */ | #define PR_IP6 0x04000000 /* IPv6 restricted or disabled */ | ||||
Context not available. | |||||
if ((descend) ? (prison_lock(cpr), 0) : 1) \ | if ((descend) ? (prison_lock(cpr), 0) : 1) \ | ||||
; \ | ; \ | ||||
else | else | ||||
/* | |||||
* As FOREACH_PRISON_DESCENDANT, but visit both preorder and postorder. | |||||
*/ | |||||
#define FOREACH_PRISON_DESCENDANT_PRE_POST(ppr, cpr, descend) \ | |||||
for ((cpr) = (ppr), (descend) = 1; \ | |||||
((cpr) = (descend) \ | |||||
? ((descend) = !LIST_EMPTY(&(cpr)->pr_children)) \ | |||||
? LIST_FIRST(&(cpr)->pr_children) \ | |||||
: (cpr) \ | |||||
: ((descend) = LIST_NEXT(cpr, pr_sibling) != NULL) \ | |||||
? LIST_NEXT(cpr, pr_sibling) \ | |||||
: cpr->pr_parent) != (ppr);) | |||||
/* | /* | ||||
* Attributes of the physical system, and the root of the jail tree. | * Attributes of the physical system, and the root of the jail tree. | ||||
Context not available. |