Date: Mon, 23 Feb 2015 07:48:12 -0700 From: Ian Lepore <ian@freebsd.org> To: "freebsd-arch@FreeBSD.org" <freebsd-arch@FreeBSD.org>, freebsd-jail@FreeBSD.org Subject: Call for review: overriding osrelease and osreldate in jails Message-ID: <1424702892.56366.31.camel@freebsd.org>
next in thread | raw e-mail | index | archive | help
I've added the ability to specify the values returned by sysctl (and thus by uname) for kern.osrelease and kern.osreldate within a jail. The changes are available for review: https://reviews.freebsd.org/D1948 This allows things like running an 8.4 jail on a 10.1 system such that within the jail the version is reliably spoofed as 8.4. While the uname values can be overridden with env vars, the env vars can be wiped out by scripts that use env(1). Changing the values returned by sysctl is more reliable. -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1424702892.56366.31.camel>