summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2011-07-24 03:34:38 +0000
committergjb <gjb@FreeBSD.org>2011-07-24 03:34:38 +0000
commit8a4b781ce664ac2b8b5a9c0bc13114cf02c6499b (patch)
tree771a1073b2a757f514a4c5853c570d4126ef210c /usr.sbin
parent2f371a18c94eee39b8763cef1f657c5872f76639 (diff)
downloadFreeBSD-src-8a4b781ce664ac2b8b5a9c0bc13114cf02c6499b.zip
FreeBSD-src-8a4b781ce664ac2b8b5a9c0bc13114cf02c6499b.tar.gz
Document the potential for jail escape.
Submitted by: Vedad KAJTAZ (vedad % kajtaz net) PR: 142341 Reviewed by: bz, rwatson Rewording by: rwatson Approved by: re (kensmith) MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/jail/jail.89
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index 893efd84..8ed913a 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -34,7 +34,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 17, 2010
+.Dd July 23, 2011
.Dt JAIL 8
.Os
.Sh NAME
@@ -907,3 +907,10 @@ Currently, the simplest answer is to minimize services
offered on the host, possibly limiting it to services offered from
.Xr inetd 8
which is easily configurable.
+.Sh NOTES
+Great care should be taken when managing directories visible within the jail.
+For example, if a jailed process has its current working directory set to a
+directory that is moved out of the jail's chroot, then the process may gain
+access to the file space outside of the jail.
+It is recommended that directories always be copied, rather than moved, out
+of a jail.
OpenPOWER on IntegriCloud