mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 21:26:51 +00:00
The previous commit missed two unquoted variable expansions. This had
the unfortunate side-effect of breaking the security script for hosts without kernel support for IPFW. Fix. Reported by: jhay
This commit is contained in:
parent
576642ef6f
commit
023fff94a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51932
|
@ -78,10 +78,10 @@ fi
|
|||
# Show ipfw rules which have reached the log limit
|
||||
#
|
||||
IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
|
||||
if [ $? -eq 0 -a ${IPFW_LOG_LIMIT} -ne 0 ]; then
|
||||
if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then
|
||||
ipfw -a l | grep " log " | perl -n -e \
|
||||
'/^\d+\s+(\d+)/; print if ($1 >= '$IPFW_LOG_LIMIT')' > ${TMP}
|
||||
if [ -s ${TMP} ]; then
|
||||
if [ -s "${TMP}" ]; then
|
||||
separator
|
||||
echo "ipfw log limit reached:"
|
||||
cat ${TMP}
|
||||
|
|
Loading…
Reference in a new issue