misc/55015: Security check output enhacement (truncated 1st line problem)

Gustavo Bellotto gbellotto at mecon.gov.ar
Tue Jul 29 07:20:14 PDT 2003


>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 at 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:


More information about the freebsd-bugs mailing list