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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 29 07:20:12 PDT 2003
>Originator:     Gustavo Bellotto
>Release:        FreeBSD 4.8-RELEASE i386
MECON (Argentine Ministry of Economy)
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

	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.

        My suggestion is to add a "tail +2" in 700.kernelmsg (version,
to suppress first dmesg output line:

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

Best Regards,

More information about the freebsd-bugs mailing list