From owner-cvs-all@FreeBSD.ORG Tue Apr 8 19:55:20 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11DBE37B401; Tue, 8 Apr 2003 19:55:20 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA82743FCB; Tue, 8 Apr 2003 19:55:19 -0700 (PDT) (envelope-from mike@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h392tJ0U026346; Tue, 8 Apr 2003 19:55:19 -0700 (PDT) (envelope-from mike@repoman.freebsd.org) Received: (from mike@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h392tJUw026345; Tue, 8 Apr 2003 19:55:19 -0700 (PDT) Message-Id: <200304090255.h392tJUw026345@repoman.freebsd.org> From: Mike Barcroft Date: Tue, 8 Apr 2003 19:55:18 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys Makefile.inc jail.2 src/sys/kern kern_jail.c subr_witness.c syscalls.master vfs_syscalls.c src/sys/ia64/ia32 syscalls.master src/sys/sys jail.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 02:55:20 -0000 mike 2003/04/08 19:55:18 PDT FreeBSD src repository Modified files: lib/libc/sys Makefile.inc jail.2 sys/kern kern_jail.c subr_witness.c syscalls.master vfs_syscalls.c sys/ia64/ia32 syscalls.master sys/sys jail.h Log: 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 Revision Changes Path 1.101 +1 -0 src/lib/libc/sys/Makefile.inc 1.23 +29 -3 src/lib/libc/sys/jail.2 1.19 +1 -0 src/sys/ia64/ia32/syscalls.master 1.31 +218 -20 src/sys/kern/kern_jail.c 1.151 +1 -0 src/sys/kern/subr_witness.c 1.149 +1 -0 src/sys/kern/syscalls.master 1.312 +65 -44 src/sys/kern/vfs_syscalls.c 1.18 +20 -0 src/sys/sys/jail.h