Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 11:12:32 -0300 (ART)
From:      "Gustavo Bellotto" <gbellotto@mecon.gov.ar>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gustavo Bellotto <gbellotto@mecon.gov.ar>
Subject:   misc/55015: Security check output enhacement (truncated 1st line problem)
Message-ID:  <200307291412.h6TECW7b023480@racing.mecon.ar>
Resent-Message-ID: <200307291420.h6TEKDin071203@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         55015
>Category:       misc
>Synopsis:       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:
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307291412.h6TECW7b023480>