Add jail_attach support.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 31 Jan 2005 22:29:59 +0000 (22:29 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 31 Jan 2005 22:29:59 +0000 (22:29 +0000)
commitb40e316c223836ee348148bc1d0b933d6909b390
tree573dc19112db32b53a17d9825aaf8d84cf31b5de
parent17ea22213f86a5c5966c1e6bf8e95f022ebb92b9
Add jail_attach support.

Inspired-by: FreeBSD
Manpage-by: Paul Herman
Add sysctl jail.list and jailed() helper functions.

Obtained-from: FreeBSD

Add jexec and jls.

Obtained-from: FreeBSD

Move reference counting into prison_hold / prison_free functions.
Fix an incorrect increment in fork1, the prison structure is not
directly copied and the cr reference counting applies to prison here
too. Begin moving explicit pointer checks for cr_prison != NULL
to the new jailed() function. Move the sys/varsym.h include in
sys/jail.h to the kernel part. Prepare for jail-local securelevel.
15 files changed:
lib/libc/sys/Makefile.inc
lib/libc/sys/jail.2
lib/libc/sys/jail_attach.2 [new file with mode: 0644]
sys/kern/kern_fork.c
sys/kern/kern_jail.c
sys/kern/kern_prot.c
sys/sys/jail.h
sys/sys/kinfo.h
usr.sbin/Makefile
usr.sbin/jexec/Makefile [new file with mode: 0644]
usr.sbin/jexec/jexec.8 [new file with mode: 0644]
usr.sbin/jexec/jexec.c [new file with mode: 0644]
usr.sbin/jls/Makefile [new file with mode: 0644]
usr.sbin/jls/jls.8 [new file with mode: 0644]
usr.sbin/jls/jls.c [new file with mode: 0644]