summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-03-25 20:57:54 +0000
committerian <ian@FreeBSD.org>2015-03-25 20:57:54 +0000
commit17ca262c02e86a8249998b8b6f269c54d2cc0393 (patch)
tree3d7f5bb95a341c4bd3b3cb5a0b72e24c35e06d6e /usr.sbin
parent024d3d32c2e26de3eb9d5db776dbab29ad79618e (diff)
downloadFreeBSD-src-17ca262c02e86a8249998b8b6f269c54d2cc0393.zip
FreeBSD-src-17ca262c02e86a8249998b8b6f269c54d2cc0393.tar.gz
MFC r279361, r279395, r279396:
Allow the kern.osrelease and kern.osreldate sysctl values to be set in a jail's creation parameters. This allows the kernel version to be reliably spoofed within the jail whether examined directly with sysctl or indirectly with the uname -r and -K options. Export the new osreldate and osrelease jail parms in jail_get(2). Fix line wrap.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/jail/jail.812
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index b270a15..83666ab 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 6, 2015
+.Dd February 25, 2015
.Dt JAIL 8
.Os
.Sh NAME
@@ -276,7 +276,7 @@ Then there are pseudo-parameters that are only used by
.Nm
itself.
.Pp
-Jails have a set a core parameters, and kernel modules can add their own
+Jails have a set of core parameters, and kernel modules can add their own
jail parameters.
The current set of available parameters can be retrieved via
.Dq Nm sysctl Fl d Va security.jail.param .
@@ -471,6 +471,14 @@ The
.Va jid
of the parent of this jail, or zero if this is a top-level jail
(read-only).
+.It Va osrelease
+The string for the jail's
+.Va kern.osrelease
+sysctl and uname -r.
+.It Va osreldate
+The number for the jail's
+.Va kern.osreldate
+and uname -K.
.It Va allow.*
Some restrictions of the jail environment may be set on a per-jail
basis.
OpenPOWER on IntegriCloud