From df99b42329ebc2494f2d67d46f47f5287d982d5c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 9 Jul 1999 21:35:50 +0000 Subject: [PATCH] Add example of how to create a jail. --- usr.sbin/jail/jail.8 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index 1e0308210b0..522c02aa782 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -6,7 +6,7 @@ .\"this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp .\"---------------------------------------------------------------------------- .\" -.\"$Id: jail.8,v 1.2 1999/05/04 18:20:53 phk Exp $ +.\"$Id: jail.8,v 1.3 1999/05/05 19:23:45 phk Exp $ .\" .\" .Dd April 28, 1999 @@ -30,6 +30,23 @@ command imprisons a process and all future decendants. Please see the .Xr jail 2 man page for further details. +.Sh EXAMPLES +This shows how to setup a jail directory tree: +.Bd -literal +D=/here/is/the/jail +cd /usr/src +make hierarchy DESTDIR=$D +make obj +make all +make install DESTDIR=$D +cd etc +make distribution DESTDIR=$D +cd $D/dev +sh MAKEDEV jail +cd $D +ln -sf dev/null kernel +echo "proc $D/proc procfs rw 0 0" >> /etc/fstab +.Ed .Sh SEE ALSO .Xr chroot 2 , .Xr jail 2