Subject: Empty output from /etc/security
To: None <current-users@NetBSD.ORG>
From: Erik Bertelsen <erik@sockdev.uni-c.dk>
List: current-users
Date: 10/02/1997 11:29:05
With recent updates to the /etc/security script and updates to
/etc/mtree/special, I have now come to a situation where the
security scripts runs with generating any output -- at least
those days where various files in /etc have been updated.
When this happens, the following output is made from /etc/daily:
---------------extract begin--------------------------
network:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs
Coll
ep0 1500 <Link> 00:20:af:76:4b:10 39188 0 14241 0
0
ep0 1500 130.228.12/25 erik-be 39188 0 14241 0
0
lo0 32976 <Link> 25 0 25 0
0
lo0 32976 127 localhost 25 0 25 0
0
Null message body; hope that's ok
------------------end of extract---------------------
and an empty message is being sent with the subject of daily security
output.
I really don't like getting these empty messages every day, and after
thinking a bit about it, my proposal is:
- /etc/daily collects the output from /etc/security in a temporary
file
- if that file is empty, a message is printed on /etc/daily's output,
and no mail message is being sent
- if that file is non-empty, the contents is mailed under the subject
of '<machine> daily security output' as it is today.
This will reduce the amount of messages being sent, while still making
a note (in daily's output) of the fact that there were not security
related messages.
Ideas? Suggestions?
After reading any reactions to this proposal, I'll probably file a PR
with or without a proposed patch depending on these reactions.
regards
Erik Bertelsen