Date: Thu, 5 Jul 2012 10:13:00 +0800 From: Bill Yuan <bycn82@gmail.com> To: Matthew Seaman <matthew@freebsd.org> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: how to update the revision information Message-ID: <CAC%2BJH2w0jE8oiwQvErnYsCwWXwiZKq=9PThTr4h%2BTrPcoTyJJQ@mail.gmail.com> In-Reply-To: <4FF44885.10408@FreeBSD.org> References: <CAC%2BJH2wFXTUvx9FC8oE=q9eHYmqzpa6k-mbM0FhQyX13364M2A@mail.gmail.com> <4FF44885.10408@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks very much, I found the source code of the loader, on the newvers.sh it will generate a vers.c I changed this script, and manually created this vers.c file. it will be inlcude in all other sources. and it contains all system version. that's my way to change it . thanks, On Wed, Jul 4, 2012 at 9:43 PM, Matthew Seaman <matthew@freebsd.org> wrote: > On 04/07/2012 12:13, Bill Yuan wrote: > > The blow information can be found when we boot up the system, also can > use > > command "uname -v" > > Unfortunately the mailing list software has stripped your attachment. > For this sort of thing, its good to put your image up on a pastebin site > and include the link in your e-mail. > > > my question is how can I change this, > > > > and I cannot rebuild it ,because on my freebsd, I dont have src anymore . > > Well, the info that uname(1) prints out is generated from the source > code at compile time. Recompiling the kernel, or updating the kernel > via eg. freebsd-update(8) are the only ways to change it. > > If you're asking about the perennial "I just security-patched my system > with freebsd-update, but uname still shows the old patch-level" thing, > then yeah. Unless freebsd-update supplies you with a whole new kernel > image, which only happens when a security bug involves the kernel, then > the uname output will not be changed. It's a flaw, but any solutions > involving being able to tweak uname settings without changing kernels > open up a whole can of security worms[*] which are, on the whole, worse > than living with some mildly outdated data. > > Cheers, > > Matthew > > > [*] J. Random Blackhat could fake you into thinking the system was > patched and up to date when in fact it was still vulnerable to > exploitation. > > -- > Dr Matthew J Seaman MA, D.Phil. > PGP: http://www.infracaninophile.co.uk/pgpkey > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC%2BJH2w0jE8oiwQvErnYsCwWXwiZKq=9PThTr4h%2BTrPcoTyJJQ>