From owner-freebsd-current@FreeBSD.ORG Thu May 24 15:47:00 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A520B1065672 for ; Thu, 24 May 2012 15:47:00 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6008FC16 for ; Thu, 24 May 2012 15:47:00 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SXaF4-0002nK-SC; Thu, 24 May 2012 11:46:22 -0400 Date: Thu, 24 May 2012 11:46:22 -0400 From: Gary Palmer To: Willem Jan Withagen Message-ID: <20120524154622.GA92444@in-addr.com> References: <4FBDE81C.9010909@digiware.nl> <4FBE37CD.9040907@digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FBE37CD.9040907@digiware.nl> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: Sergey Kandaurov , FreeBSD Current Subject: Re: Daily, weekly, security scripts.... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 15:47:00 -0000 On Thu, May 24, 2012 at 03:29:49PM +0200, Willem Jan Withagen wrote: > On 2012-05-24 14:01, Sergey Kandaurov wrote: > > On 24 May 2012 11:49, Willem Jan Withagen wrote: > >> [I looked for a better list to drop this on, but other that freebsd-rc > >> nothing seems close.] > >> > >> Hi, > >> > >> I nagged about the verbosity of the periodic scripts. > >> But did not give any example. > > [example stripped] > > >> This would call for something like $periodic_quiet?? > >> and then generating the headers only if there was something to report. > > > > Hi, > > you could try to start with: > > > > security_show_success="NO" > > daily_show_success="NO" > > I looked in some of the security scripts and that variable is not used > in the ones I looked into. > > But perhaps in script/tools that does the overall calling of the > /etc/periodic/security/* scripts. Its handled in /usr/sbin/periodic success=YES info=YES badconfig=NO empty_output=YES # Defaults when ${run}_* aren't YES/NO for var in success info badconfig empty_output do case $(eval echo "\$${arg##*/}_show_$var") in [Yy][Ee][Ss]) eval $var=YES;; [Nn][Oo]) eval $var=NO;; esac done Regards, Gary