From wollman@mintaka.lcs.mit.edu  Sat Aug 25 10:52:29 2001
Return-Path: <wollman@mintaka.lcs.mit.edu>
Received: from mintaka.lcs.mit.edu (mintaka.lcs.mit.edu [18.26.0.36])
	by hub.freebsd.org (Postfix) with ESMTP id 4BCDC37B40A
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Aug 2001 10:52:29 -0700 (PDT)
	(envelope-from wollman@mintaka.lcs.mit.edu)
Received: (from wollman@localhost)
	by mintaka.lcs.mit.edu (8.11.5/8.11.5) id f7PHqRh22096;
	Sat, 25 Aug 2001 13:52:27 -0400 (EDT)
	(envelope-from wollman)
Message-Id: <200108251752.f7PHqRh22096@mintaka.lcs.mit.edu>
Date: Sat, 25 Aug 2001 13:52:27 -0400 (EDT)
From: "Garrett A. Wollman" <wollman@LCS.MIT.EDU>
Reply-To: "Garrett A. Wollman" <wollman@LCS.MIT.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/security should not call `dmesg -a'
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30079
>Category:       bin
>Synopsis:       /etc/security should not call `dmesg -a'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 25 11:00:00 PDT 2001
>Closed-Date:    Wed Jun 19 17:50:29 PDT 2002
>Last-Modified:  Wed Jun 19 17:50:29 PDT 2002
>Originator:     Garrett A. Wollman
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
MIT Laboratory for Computer Science
>Environment:
System: FreeBSD mintaka.lcs.mit.edu 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #9: Wed Aug 15 17:13:02 EDT 2001 root@mintaka.lcs.mit.edu:/usr/src/sys/compile/MINTAKA i386


	Revision 1.11.2.2 of src/sbin/dmesg/dmesg.c;
	revision 1.36.2.18 of src/etc/security

>Description:
	/etc/security's output is now spammed with everything written
	to /dev/console.  Whatever the problem was in misc/26870, this
	is not the right fix.  This check in /etc/security should
	cover only what it claims to cover: ``kernel log messages''.
	I rate this problem ``serious'' because the output in this
	report should be short and to the point; including
	(potentially voluminous) extraneous log messages -- which
	should be analyzed in the appropriate log files anyway -- may
	cause the sysadmin to miss important messages written only
	once.

>How-To-Repeat:
	echo 'foo' >/dev/console
	Wait for /etc/security to tell you about it.

>Fix:

	Work-around: revert rev. 1.36.2.18 of /etc/security.
	Then figure out what was really wrong in misc/26870 and fix
	that instead.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: johan 
State-Changed-When: Wed Jun 19 17:08:35 PDT 2002 
State-Changed-Why:  
This was fixed in rev 1.3 of  
etc/periodic/security/700.kernelmsg 

This PR get to serve as a MFC reminder. 


Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: johan 
Responsible-Changed-When: Wed Jun 19 17:08:35 PDT 2002 
Responsible-Changed-Why:  
Over to brian who made the commit. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=30079 
State-Changed-From-To: patched->closed 
State-Changed-By: brian 
State-Changed-When: Wed Jun 19 17:48:46 PDT 2002 
State-Changed-Why:  
The use of dmesg's -a switch has been removed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30079 
>Unformatted:
