how to update the revision information

Bill Yuan bycn82 at gmail.com
Thu Jul 5 02:13:06 UTC 2012


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 at 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
>
>
>
>


More information about the freebsd-questions mailing list