[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-arch
Subject:    Call for review: overriding osrelease and osreldate in jails
From:       Ian Lepore <ian () freebsd ! org>
Date:       2015-02-23 14:48:12
Message-ID: 1424702892.56366.31.camel () freebsd ! org
[Download RAW message or body]

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


_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic