freebsd-nq/usr.sbin/jail
Ian Lepore b96bd95b85 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.

The values can only be set at jail creation time, to eliminate the need
for any locking when accessing the values via sysctl.

The overridden values are inherited by nested jails (unless the config for
the nested jails also overrides the values).

There is no sanity or range checking, other than disallowing an empty
release string or a zero release date, by design.  The system
administrator is trusted to set sane values.  Setting values that are
newer than the actual running kernel will likely cause compatibility
problems.

Differential Revision:	https://reviews.freebsd.org/D1948
Relnotes:	yes
2015-02-27 16:28:55 +00:00
..
command.c Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
config.c Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
jail.8 Allow the kern.osrelease and kern.osreldate sysctl values to be set in a 2015-02-27 16:28:55 +00:00
jail.c Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
jail.conf.5 Bump .Dd forgotten in r261832. 2014-02-13 13:11:34 +00:00
jaillex.l Work around build breakages with GCC 4.2. 2013-05-23 05:42:35 +00:00
jailp.h Add mount.procfs jail parameter, so procfs can be mounted when a prison's 2015-02-06 17:54:53 +00:00
jailparse.y Update copyright dates and other whitespacey stuff. 2011-06-17 16:21:03 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
state.c In preparation for using clang's -Wcast-qual: 2014-11-25 21:01:08 +00:00