From owner-freebsd-questions@FreeBSD.ORG Thu Jul 5 02:13:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C33981065676; Thu, 5 Jul 2012 02:13:06 +0000 (UTC) (envelope-from bycn82@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 63DE48FC0A; Thu, 5 Jul 2012 02:13:06 +0000 (UTC) Received: by vcbfy7 with SMTP id fy7so6358324vcb.13 for ; Wed, 04 Jul 2012 19:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cRpEkDx57TFATxMVFk2C4s0/eMTEZBN5w/ZXqe+Aum4=; b=OPhCZ0oDQkXnA2qTxvRy7I4yyC6Ew3TqO5UEUwbXVC6r0kAmJNIR4g9KVNk1WQ7LRn 8BRgDK9YgqrGhX8FIKYwNyoTrjyg2XkU7FRuDZp7suvDu10/dvRw6lD4T6jkkE9ZVesS V+ficcFS4BsL+ZkbG0iErDSLlhzWPi02A3zrTLB/Q8hlrlUnWg2vV/38SbiCmTkzexQt I99d493M+xBR3NabD+Vcm9MRMnl6Dgdv3zigcrEIGZWbWmykRGS0qTWa+CW2Ir/IzoAU zT7gNzgEMvBRZA9bfUHa7rKGFcWmUqa4kMo1KF0dGg47oNQ8lRaJh/tzIwrejbeeg5T0 xTYA== MIME-Version: 1.0 Received: by 10.52.95.225 with SMTP id dn1mr7866884vdb.99.1341454380716; Wed, 04 Jul 2012 19:13:00 -0700 (PDT) Received: by 10.220.241.211 with HTTP; Wed, 4 Jul 2012 19:13:00 -0700 (PDT) In-Reply-To: <4FF44885.10408@FreeBSD.org> References: <4FF44885.10408@FreeBSD.org> Date: Thu, 5 Jul 2012 10:13:00 +0800 Message-ID: From: Bill Yuan To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: how to update the revision information X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 02:13:06 -0000 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 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 > > > >