summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jail
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-07-09 21:35:50 +0000
committerphk <phk@FreeBSD.org>1999-07-09 21:35:50 +0000
commit0e5641f96697f30b24ea3c17b01d108b83aa6ce3 (patch)
treea5f2a3db48351e122e1c39eb8d97f23d971f36e5 /usr.sbin/jail
parent67e84e4db59573d18a0ad7f12b6be3d7eff341e6 (diff)
downloadFreeBSD-src-0e5641f96697f30b24ea3c17b01d108b83aa6ce3.zip
FreeBSD-src-0e5641f96697f30b24ea3c17b01d108b83aa6ce3.tar.gz
Add example of how to create a jail.
Diffstat (limited to 'usr.sbin/jail')
-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 1e03082..522c02a 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
OpenPOWER on IntegriCloud