svn commit: r306696 - head/etc/periodic/security

Kurt Lidl lidl at FreeBSD.org
Tue Oct 4 23:12:36 UTC 2016


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}


More information about the svn-src-head mailing list