Subject: bin/17029: option to include daily insecurity output in daily output
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jre@vineyard.net>
List: netbsd-bugs
Date: 05/26/2002 00:25:58
>Number: 17029
>Category: bin
>Synopsis: option to include daily insecurity output in daily output
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat May 25 21:28:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Josh Elsasser
>Release: NetBSD 1.5.2
>Organization:
>Environment:
System: NetBSD ragnarok 1.5.2 NetBSD 1.5.2 (RAGNAROK) #0: Wed May 22 20:10:30 EDT 2002 joshe@ragnarok:/usr/src/sys/arch/sparc/compile/RAGNAROK sparc
>Description:
Add a knob run_security_inline to daily.conf(5) which will
cause the daily insecurity output to be included in the daily output,
instead of being sent in a separate email. This knob is set to NO by
default, preserving the current behavior.
>How-To-Repeat:
Develop a desire to reduce your daily cronspam by one email
per netbsd box.
>Fix:
--- daily.orig Thu Aug 23 07:45:35 2001
+++ daily Fri May 24 09:50:25 2002
@@ -218,7 +218,13 @@
if [ ! -s $SECOUT ]; then
echo "Nothing to report on $date" > $SECOUT
fi
- mail -s "$host daily insecurity output for $date" $MAILTO < $SECOUT
+ if checkyesno run_security_inline; then
+ echo ""
+ echo "$host daily insecurity output for $date:"
+ cat $SECOUT
+ else
+ mail -s "$host daily insecurity output for $date" $MAILTO < $SECOUT
+ fi
fi
if checkyesno run_skeyaudit; then
--- defaults/daily.conf.orig Sun Jul 29 16:23:41 2001
+++ defaults/daily.conf Fri May 24 10:32:51 2002
@@ -21,4 +21,5 @@
run_fsck=NO
run_rdist=YES
run_security=YES
+run_security_inline=NO
run_skeyaudit=YES
>Release-Note:
>Audit-Trail:
>Unformatted: