From owner-freebsd-security@FreeBSD.ORG Thu Aug 9 15:43:47 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC88B106564A for ; Thu, 9 Aug 2012 15:43:47 +0000 (UTC) (envelope-from henke.andersen@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 38DF88FC1A for ; Thu, 9 Aug 2012 15:43:47 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so443764lbb.13 for ; Thu, 09 Aug 2012 08:43:46 -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 :cc:content-type; bh=2f3OER50PBgkrOmy85x3wC4DT2OI2TM7fd+s4/zxVlA=; b=WUMBqHVxaFUSlLH1xr5wiMezreATDyou43UpUqF4ijSzDXoFNDLLXw6FxSyTKXbVZA Lc1EL3G/GXPGZ7MCedAblM3zRojKN5XtHVcgaOJXJa0Fa+iPVDh7GpqPOKZ2fv5FMRX2 whJonx8fnOY0uYxBCSu6Ro8peBjXqrrNxB8oyw7guJT9dX/233etasEQAKdLMgdIuT0P 2WSEKdARJ/9x5YpkVAwbEKe7Z104q33lmcuJ6Q0hnL7dXW5siMt8CS8RvzoI5wUkHZjj ooD8Zby/adwvwxM1lo2pnx93KDtDZPSMpEJ/2h+XF228I3XTB8yLHOyJxTuWJ234ejpU OFpw== Received: by 10.152.114.3 with SMTP id jc3mr4560756lab.11.1344527026078; Thu, 09 Aug 2012 08:43:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.27.74 with HTTP; Thu, 9 Aug 2012 08:43:25 -0700 (PDT) In-Reply-To: References: <5023a174.c4df440a.09cc.ffffd3d2SMTPIN_ADDED@mx.google.com> <3FB858A6-807A-45E7-880B-F27D9C884827@gmail.com> From: Henrik Andersen Date: Thu, 9 Aug 2012 08:43:25 -0700 Message-ID: To: cronfy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-security@freebsd.org 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:43:47 -0000 Hi all, You can find the current patch level in /usr/src/sys/conf/newvers.sh ex: TYPE=3D"FreeBSD" REVISION=3D"8.3" BRANCH=3D"RELEASE-p4" uname -v on the same server: FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC If I read the handbook correctly this should always be true on systems using freebsd-update. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgradin= g-freebsdupdate.html Regards, Henrik On Thu, Aug 9, 2012 at 8:02 AM, cronfy wrote: > >> Hi all, > >> I would like to know if there is a command or a way to retrieve the > "patch > >> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of > the > >> 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-p4: > >> ... > >> but this give me no info about the current system; I tried a brief > search in > >> config file but no luck; > >> again the question is: > >> is there a way to determine for a running server which "patch level" i= s > >> 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. > > -- > =D0=9E=D0=BB=D0=B5=D0=B3 =D0=9F=D0=B5=D1=82=D1=80=D0=B0=D1=87=D0=B5=D0=B2 > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.or= g > " >