The security run requests unmaskable output, even if the only output is to

tell that there is a separate email or that the output is logged to a file.

This commit changes the return code for the non-inline case to tell that
this message is not important enough and can be masked if necessary. The
messages from the security checks themself are not affected by this and
show up as before in the periodic security email/file.

The inline case still requests to not mask the output, as with the current
way of handling this there is no easy way to handle this.

PR:			138692
Analysis/patch atch by:	Chris Cowart <ccowart@timesinks.net>
X-MFC after:		on request
This commit is contained in:
Alexander Leidinger 2011-05-04 12:48:02 +00:00
parent ceb42a13a1
commit 6edc5d5ab4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221432

View File

@ -23,16 +23,17 @@ case "$daily_status_security_enable" in
export security_output="${daily_status_security_output}"
case "${daily_status_security_output}" in
"")
;;
rc=3;;
/*)
echo " (output logged separately)";;
echo " (output logged separately)"
rc=0;;
*)
echo " (output mailed separately)";;
echo " (output mailed separately)"
rc=0;;
esac;;
esac
periodic security
rc=3;;
periodic security || rc=3;;
*) rc=0;;
esac