From owner-freebsd-security@FreeBSD.ORG Thu Aug 9 15:02:57 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E9DCC1065673 for ; Thu, 9 Aug 2012 15:02:57 +0000 (UTC) (envelope-from cronfy@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 791378FC0C for ; Thu, 9 Aug 2012 15:02:57 +0000 (UTC) Received: by weyx56 with SMTP id x56so438783wey.13 for ; Thu, 09 Aug 2012 08:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=jQQVxMdfC9oGROjcMfJ3BdeAk6jvTPNUqBP7fE1kyck=; b=xCNWEBM2n7OLxQId1nwbiOG5/HJkGqRUkyUDG8TgN85OlxxWLdK2o1eCqCDno0RCNH OvPfJJxjFBrbk9WDbYn3OZ/Mk4BOJb1cNUWD/Kz0ZW1ujKzTCPchYcvAkklyqDyGamgs 0eCVTNZ9klQ3q75zXNvDRi/G4wlfT/9C7/RnDznpZEe1D85nrA3IS05lF3gfyrhpJ1CA FyCZD/KqHykGS+U3oB1AH4opcceLhqp2xkonbZV9EN1SLUYwTOu7Meantyf0F60MgdZw fnGnRZcOo2sZWY9nqAhLKY2bwzGNkxoP5sCMCOEObc7mSN1Ggb9FoufbANfFPPevumhL 9qqw== Received: by 10.216.135.147 with SMTP id u19mr11440584wei.12.1344524576574; Thu, 09 Aug 2012 08:02:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.59.75 with HTTP; Thu, 9 Aug 2012 08:02:16 -0700 (PDT) In-Reply-To: <3FB858A6-807A-45E7-880B-F27D9C884827@gmail.com> References: <5023a174.c4df440a.09cc.ffffd3d2SMTPIN_ADDED@mx.google.com> <3FB858A6-807A-45E7-880B-F27D9C884827@gmail.com> From: cronfy Date: Thu, 9 Aug 2012 19:02:16 +0400 Message-ID: To: freebsd-security@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: getting the running patch level X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2012 15:02:58 -0000 >> Hi all, >> I would like to know if there is a command or a way to retrieve the "pat= ch >> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of t= he >> running system: just an example, if I run: >> # freebsd-update fetch >> No updates needed to update system to 9.0-RELEASE-p4 >> or: >> ... >> The following files will be updated as part of updating to 9.0-RELEASE-p= 4: >> ... >> but this give me no info about the current system; I tried a brief searc= h in >> config file but no luck; >> again the question is: >> is there a way to determine for a running server which "patch level" is >> currently at ? > uname -a Unfortunately there is no trivial way. uname -a will show you correct patch level only if kernel was changed at this patch level. So the only way is to see what updates freebsd-update offers to you and try to guess, on which patch level you are on now. --=20 =D0=9E=D0=BB=D0=B5=D0=B3 =D0=9F=D0=B5=D1=82=D1=80=D0=B0=D1=87=D0=B5=D0=B2