From owner-svn-src-head@FreeBSD.ORG Sat Feb 28 16:34:00 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFE6DE9; Sat, 28 Feb 2015 16:34:00 +0000 (UTC) Received: from pmta2.delivery5.ore.mailhop.org (pmta2.delivery5.ore.mailhop.org [54.186.218.12]) by mx1.freebsd.org (Postfix) with ESMTP id CBEDDBAB; Sat, 28 Feb 2015 16:34:00 +0000 (UTC) Received: from smtp6.ore.mailhop.org (172.31.36.112) by pmta2.delivery1.ore.mailhop.org id hu7n0e20u508; Sat, 28 Feb 2015 16:34:08 +0000 (envelope-from ) Received: from c-73-34-117-227.hsd1.co.comcast.net ([73.34.117.227] helo=ilsoft.org) by smtp6.ore.mailhop.org with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1YRkKw-0001mI-I3; Sat, 28 Feb 2015 16:33:54 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t1SGXpDZ087102; Sat, 28 Feb 2015 09:33:52 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: DuoCircle Outbound SMTP X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information) X-MHO-User: U2FsdGVkX19Lhne7cqXUbjFHyL7t/wdh Message-ID: <1425141231.1281.39.camel@freebsd.org> Subject: Re: svn commit: r279361 - in head: sys/kern sys/sys usr.sbin/jail From: Ian Lepore To: Dmitry Morozovsky Date: Sat, 28 Feb 2015 09:33:51 -0700 In-Reply-To: References: <201502271628.t1RGSurE067472@svn.freebsd.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 16:34:01 -0000 On Sat, 2015-02-28 at 18:03 +0300, Dmitry Morozovsky wrote: > 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@FreeBSD.org ] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ I will definitely mfc (we need this on 10-stable at $work), but I hate being spammed and/or nagged by robots so I don't use MFC: tags. -- ian