aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/jail/jail.8
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-07-09 21:35:50 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-07-09 21:35:50 +0000
commitdf99b42329ebc2494f2d67d46f47f5287d982d5c (patch)
treefb4ccfc7d7142df33414113aae79ec4002a4c633 /usr.sbin/jail/jail.8
parent38edd9beb9581088dcb4c24e46acc251cfea02e3 (diff)
downloadsrc-df99b42329ebc2494f2d67d46f47f5287d982d5c.tar.gz
src-df99b42329ebc2494f2d67d46f47f5287d982d5c.zip
Add example of how to create a jail.
Notes
Notes: svn path=/head/; revision=48722
Diffstat (limited to 'usr.sbin/jail/jail.8')
-rw-r--r--usr.sbin/jail/jail.819
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index 1e0308210b04..522c02aa782f 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