summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2003-04-09 02:55:18 +0000
committermike <mike@FreeBSD.org>2003-04-09 02:55:18 +0000
commit75859ca578ff1bc109e1263e5c52d225315515e0 (patch)
treec6122edf636b885d1df318cda6d94636af3212f8 /sys/kern/subr_witness.c
parent979ed3a82ea34d46466c4d6f755b15b85df66f15 (diff)
downloadFreeBSD-src-75859ca578ff1bc109e1263e5c52d225315515e0.zip
FreeBSD-src-75859ca578ff1bc109e1263e5c52d225315515e0.tar.gz
o In struct prison, add an allprison linked list of prisons (protected
by allprison_mtx), a unique prison/jail identifier field, two path fields (pr_path for reporting and pr_root vnode instance) to store the chroot() point of each jail. o Add jail_attach(2) to allow a process to bind to an existing jail. o Add change_root() to perform the chroot operation on a specified vnode. o Generalize change_dir() to accept a vnode, and move namei() calls to callers of change_dir(). o Add a new sysctl (security.jail.list) which is a group of struct xprison instances that represent a snapshot of active jails. Reviewed by: rwatson, tjr
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 3b7526a..d89698b 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -266,6 +266,7 @@ static struct witness_order_list_entry order_lists[] = {
{ "session", &lock_class_mtx_sleep },
{ "uidinfo hash", &lock_class_mtx_sleep },
{ "uidinfo struct", &lock_class_mtx_sleep },
+ { "allprison", &lock_class_mtx_sleep },
{ NULL, NULL },
/*
* spin locks
OpenPOWER on IntegriCloud