From gustavo@racing.mecon.ar  Tue Jul 29 07:14:42 2003
Return-Path: <gustavo@racing.mecon.ar>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 911EE37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Jul 2003 07:14:42 -0700 (PDT)
Received: from relay2.mecon.ar (relay2.mecon.gov.ar [168.101.16.11])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1045643F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Jul 2003 07:14:41 -0700 (PDT)
	(envelope-from gustavo@racing.mecon.ar)
Received: from racing.mecon.ar (racing.mecon.gov.ar [168.101.133.15])
	by relay2.mecon.ar (8.12.6p2/8.12.6) with ESMTP id h6TEEdV7060683
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Jul 2003 11:14:39 -0300 (ART)
	(envelope-from gustavo@racing.mecon.ar)
Received: from racing.mecon.ar (meyosp.mecon.gov.ar [10.11.0.149])
	by racing.mecon.ar (8.12.6/8.12.6) with ESMTP id h6TECX8e023487;
	Tue, 29 Jul 2003 11:12:33 -0300 (ART)
	(envelope-from gustavo@racing.mecon.ar)
Received: from racing.mecon.ar (localhost [127.0.0.1])
	by racing.mecon.ar (8.12.6/8.12.6) with ESMTP id h6TECXjd023484;
	Tue, 29 Jul 2003 11:12:33 -0300 (ART)
	(envelope-from gustavo@racing.mecon.ar)
Received: (from root@localhost)
	by racing.mecon.ar (8.12.6/8.12.6/Submit) id h6TECW7b023480;
	Tue, 29 Jul 2003 11:12:32 -0300 (ART)
Message-Id: <200307291412.h6TECW7b023480@racing.mecon.ar>
Date: Tue, 29 Jul 2003 11:12:32 -0300 (ART)
From: "Gustavo Bellotto" <gbellotto@mecon.gov.ar>
Reply-To: "Gustavo Bellotto" <gbellotto@mecon.gov.ar>
To: FreeBSD-gnats-submit@freebsd.org
Cc: "Gustavo Bellotto" <gbellotto@mecon.gov.ar>
Subject: Security check output enhacement (truncated 1st line problem)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55015
>Category:       conf
>Synopsis:       [patch] 700.kernelmsg: Security check output enhacement (truncated 1st line problem)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 29 07:20:12 PDT 2003
>Closed-Date:    
>Last-Modified:  Wed Sep 01 04:38:57 GMT 2004
>Originator:     Gustavo Bellotto
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
MECON (Argentine Ministry of Economy)
>Environment:
FreeBSD cvs-freebsd.mecon.ar 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon Jun  2 11:16:05 ART 2003 root@bal740r0.mecon.gov.ar:/usr/obj/usr/src/sys/PENTIUM  i386

>Description:
	As dmesg prints out the system message buffer, which seems to be cyclic on
a byte boundary, the first line of dmesg.today / yesterday are some times fragments
of a line. Thus the diff done by check_diff in the periodic security report shows
undesired unmatched fragments.

>How-To-Repeat:
        Trivial.
>Fix:
        My suggestion is to add a "tail +2" in 700.kernelmsg (version 1.1.2.7),
to suppress first dmesg output line:

	cvs-freebsd:/etc/periodic/security>diff 700.kernelmsg 700.kernelmsg-
	47c47
	<       dmesg 2>/dev/null | tail +2 |
	---
	>       dmesg 2>/dev/null |

Best Regards,
Gustavo
>Release-Note:
>Audit-Trail:
>Unformatted:
