conf/138692: 450.status-security should exit with rc=0
Benjamin Lee
ben at b1c1l1.com
Thu Sep 10 06:10:02 UTC 2009
>Number: 138692
>Category: conf
>Synopsis: 450.status-security should exit with rc=0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 10 06:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Lee
>Release: 7.2-RELEASE
>Organization:
>Environment:
FreeBSD eclipse.b1c1l1.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
/etc/periodic/daily/450.status-security sets rc=3 when daily_status_security_enable="YES". According to periodic(8), this means that the output "must not be masked." However, this script only prints a single message or even nothing at all:
case "${daily_status_security_output}" in
"")
;;
/*)
echo " (output logged separately)";;
*)
echo " (output mailed separately)";;
esac;;
Please apply the attached patch to set rc=0, to indicate that there is "nothing notable" in the output.
>How-To-Repeat:
Set daily_status_security_enable="YES" and run 'periodic daily'.
>Fix:
Patch is attached.
Patch attached with submission follows:
--- 450.status-security.orig 2009-09-09 22:45:13.000000000 -0700
+++ 450.status-security 2009-09-09 22:45:21.000000000 -0700
@@ -32,7 +32,7 @@
esac
periodic security
- rc=3;;
+ rc=0;;
*) rc=0;;
esac
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list