From owner-freebsd-security@FreeBSD.ORG Mon Aug 13 19:59:21 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 C0226106564A for ; Mon, 13 Aug 2012 19:59:21 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4612D8FC12 for ; Mon, 13 Aug 2012 19:59:20 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3630626wgb.31 for ; Mon, 13 Aug 2012 12:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=gPROj3OnsGfFRZ1qMWBt6Ka80A7XD2CiArta3vNLMXI=; b=ZMTJfxeu/yQXQkq3q/5bVDrIf+dvEUjPo26+LvDYmTc/0oq43UuPUeRARUyofiWwqh ZWYCwoU0t1XZdEoquOL51ndoitH/Ya6GUTSvPWQzBo3ejI7hLIHA5JtreZrCZvgQCxby bVKYkuk3UUZdxqBzV/52xczDdHcnEQWCDt3MZHTl7q/RJ5xbV4Zt8oHWvImPkSG+YFO3 BaAha/LxD9YgflbkGjleRIDTZwTkJp8jsfTlRUSZ7vsy+Yt20xQa+b4j7X/F1nRa4t+j 9Eey+CqSWSQal73V9Mjp4byY9cKifvQN6QAv6HWRILOxbqpiXsV338XdwwQg2Men4Kg/ 1bbA== Received: by 10.216.136.72 with SMTP id v50mr6536116wei.203.1344887960017; Mon, 13 Aug 2012 12:59:20 -0700 (PDT) Received: from pegasus.dyndns.org (athedsl-4365190.home.otenet.gr. [79.130.11.118]) by mx.google.com with ESMTPS id ef5sm26442528wib.3.2012.08.13.12.59.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 12:59:19 -0700 (PDT) Message-ID: <50295C95.7020301@gmail.com> Date: Mon, 13 Aug 2012 22:59:17 +0300 From: Manolis Kiagias User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120722 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-security@freebsd.org References: <0B65D7562F9DA04FAC3F15C508BF67136B90E09E1F@ESESSCMS0355.eemea.ericsson.se> <001701cd7648$c2520350$46f609f0$@com> <5024f984.45ca320a.1838.4155SMTPIN_ADDED@mx.google.com> <86pq6xs0zb.fsf@ds4.des.no> <20120812163448.GA88577@DataIX.net> <86vcgm7fsw.fsf@ds4.des.no> In-Reply-To: <86vcgm7fsw.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Mon, 13 Aug 2012 19:59:21 -0000 On 13/08/2012 22:27, Dag-Erling Smørgrav wrote: > Jason Hellenthal writes: >> Could I suggest... the same way that /etc/motd is already updated ? > You could, but it wouldn't be very helpful, since /etc/rc.d/motd uses > uname(1), which returns the kernel version. On the contrary, once > /etc/issue is in place, we should use that instead of uname(1) to update > /etc/motd. > > DES One could also set the environment variable UNAME_r to the correct value (either in system wide e.g. /etc/profile or to a specific user dot files). Only problem of course it would have to be updated to the correct value manually. Or, since the correct value is always in newvers.sh, if src is present in the system a periodic script could update it automatically. The manual updating will cause more confusion in the long run - people tend to forget these things...