--- etc/periodic/security/500.ipfwdenied +++ etc/periodic/security/500.ipfwdenied @@ -41,7 +41,7 @@ case "$daily_status_security_ipfwdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp -t security` + TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` if ipfw -a list 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then check_diff new_only ipfw ${TMP} "${host} ipfw denied packets:" fi --- etc/periodic/security/510.ipfdenied +++ etc/periodic/security/510.ipfdenied @@ -41,7 +41,7 @@ case "$daily_status_security_ipfdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp -t security` + TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` if ipfstat -nhio 2>/dev/null | grep block > ${TMP}; then check_diff new_only ipf ${TMP} "${host} ipf denied packets:" fi --- etc/periodic/security/520.pfdenied +++ etc/periodic/security/520.pfdenied @@ -41,7 +41,7 @@ case "$daily_status_security_pfdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp -t security` + TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` if pfctl -sr -v 2>/dev/null | nawk '{if (/^block/) {buf=$0; getline; gsub(" +"," ",$0); print buf$0;} }' > ${TMP}; then check_diff new_only pf ${TMP} "${host} pf denied packets:" fi --- etc/periodic/security/550.ipfwlimit +++ etc/periodic/security/550.ipfwlimit @@ -46,7 +46,7 @@ if [ $? -ne 0 ] || [ "$IPFW_VERBOSE" -eq 0 ]; then exit 0 fi - TMP=`mktemp -t security` + TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` ipfw -a list | grep " log " | \ grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \ awk \ --- etc/periodic/security/security.functions +++ etc/periodic/security/security.functions @@ -52,7 +52,7 @@ msg="$1"; shift if [ "${tmpf}" = "-" ]; then - tmpf=`mktemp -t security` + tmpf=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` cat > ${tmpf} fi