Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2009 06:04:12 GMT
From:      Benjamin Lee <ben@b1c1l1.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/138692: 450.status-security should exit with rc=0
Message-ID:  <200909100604.n8A64C4e069397@www.freebsd.org>
Resent-Message-ID: <200909100610.n8A6A2bA067783@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909100604.n8A64C4e069397>