svn commit: r279361 - in head: sys/kern sys/sys usr.sbin/jail
Dmitry Morozovsky
marck at rinet.ru
Sat Feb 28 15:09:16 UTC 2015
Ian,
On Fri, 27 Feb 2015, Ian Lepore wrote:
> Author: ian
> Date: Fri Feb 27 16:28:55 2015
> New Revision: 279361
> URL: https://svnweb.freebsd.org/changeset/base/279361
>
> Log:
> 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
Thanks, very useful feature. Just one question: no MFC planned?
[diff snipped]
--
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the svn-src-head
mailing list