/[base]
ViewVC logotype

Revision 316548


Jump to revision: Previous Next
Author: asomers
Date: Thu Apr 6 01:37:03 2017 UTC (7 years, 2 months ago)
Changed paths: 3
Log Message:
Quiet 450.status-security when *_inline="YES"

Previously, 450.status-security would always set rc=3 in inline mode,
because it doesn't know whether "periodic security" is going to find
anything interesting. But this annoyingly results in daily reports that
simply say "Security check: \n\n-- End of daily output --".

This change fixes that by testing whether "periodic security" printed
anything, and setting 450.status-security's exit status to 3 if it did. An
alternative would be to change the exit status of periodic(8) to be the
worst of its scripts' exit statuses, but that would be a more intrusive
change.

Reviewed by:	brian
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D10267


Changed paths

Path Details
Directoryhead/etc/periodic/daily/450.status-security modified , text changed
Directoryhead/etc/periodic/monthly/450.status-security modified , text changed
Directoryhead/etc/periodic/weekly/450.status-security modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27