Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2016 23:12:35 +0000 (UTC)
From:      Kurt Lidl <lidl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306696 - head/etc/periodic/security
Message-ID:  <201610042312.u94NCZPv007358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lidl
Date: Tue Oct  4 23:12:35 2016
New Revision: 306696
URL: https://svnweb.freebsd.org/changeset/base/306696

Log:
  Make 502.pfdenied find blacklistd/* filter names dynamically
  
  This change is needed to make the 520.pfdenied script find the new
  blacklistd/* anchor points for reporting blocked traffic.
  
  Reviewed by:	kp
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/etc/periodic/security/520.pfdenied

Modified: head/etc/periodic/security/520.pfdenied
==============================================================================
--- head/etc/periodic/security/520.pfdenied	Tue Oct  4 23:10:43 2016	(r306695)
+++ head/etc/periodic/security/520.pfdenied	Tue Oct  4 23:12:35 2016	(r306696)
@@ -44,8 +44,7 @@ rc=0
 if check_yesno_period security_status_pfdenied_enable
 then
 	TMP=`mktemp -t security`
-	touch ${TMP}
-	for _a in "" blacklistd
+	for _a in "" $(pfctl -a "blacklistd" -sA 2>/dev/null)
 	do
 		pfctl -a ${_a} -sr -v -z 2>/dev/null | \
 		nawk '{if (/^block/) {buf=$0; getline; gsub(" +"," ",$0); if ($5 > 0) print buf$0;} }' >> ${TMP}



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