diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-30 22:06:26 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-30 22:06:26 +0000 |
| commit | 3b5ba84fd21bfd20e12375b8ffd1aa0fa3431bae (patch) | |
| tree | d7583226bd9d40bd09edf2f59dc7661bbf69729a | |
| parent | a83659958bcd473d4409aff503cb09855c365850 (diff) | |
Notes
| -rwxr-xr-x | etc/periodic/security/500.ipfwdenied | 2 | ||||
| -rw-r--r-- | etc/periodic/security/510.ipfdenied | 2 | ||||
| -rwxr-xr-x | etc/periodic/security/550.ipfwlimit | 2 | ||||
| -rwxr-xr-x | etc/periodic/security/600.ip6fwdenied | 2 | ||||
| -rwxr-xr-x | etc/periodic/security/650.ip6fwlimit | 2 | ||||
| -rw-r--r-- | etc/periodic/security/security.functions | 2 | ||||
| -rwxr-xr-x | etc/rc.d/motd | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/etc/periodic/security/500.ipfwdenied b/etc/periodic/security/500.ipfwdenied index 77353027f24d..22c63e967bd5 100755 --- a/etc/periodic/security/500.ipfwdenied +++ b/etc/periodic/security/500.ipfwdenied @@ -41,7 +41,7 @@ rc=0 case "$daily_status_security_ipfwdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + TMP=`mktemp -t security` if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then check_diff new_only ipfw ${TMP} "${host} ipfw denied packets:" fi diff --git a/etc/periodic/security/510.ipfdenied b/etc/periodic/security/510.ipfdenied index 9b3658e65c08..2058d2b1cb94 100644 --- a/etc/periodic/security/510.ipfdenied +++ b/etc/periodic/security/510.ipfdenied @@ -41,7 +41,7 @@ rc=0 case "$daily_status_security_ipfdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + TMP=`mktemp -t security` if ipfstat -nhio 2>/dev/null | grep block > ${TMP}; then check_diff new_only ipf ${TMP} "${host} ipf denied packets:" fi diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit index d033645c1830..65e8bd2c502a 100755 --- a/etc/periodic/security/550.ipfwlimit +++ b/etc/periodic/security/550.ipfwlimit @@ -42,7 +42,7 @@ rc=0 case "$daily_status_security_ipfwlimit_enable" in [Yy][Ee][Ss]) - TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + TMP=`mktemp -t security` IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null` if [ $? -eq 0 ] && [ "${IPFW_LOG_LIMIT}" -ne 0 ]; then ipfw -a l | grep " log " | \ diff --git a/etc/periodic/security/600.ip6fwdenied b/etc/periodic/security/600.ip6fwdenied index 407aa9f982c9..418ba1756338 100755 --- a/etc/periodic/security/600.ip6fwdenied +++ b/etc/periodic/security/600.ip6fwdenied @@ -41,7 +41,7 @@ rc=0 case "$daily_status_security_ip6fwdenied_enable" in [Yy][Ee][Ss]) - TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + TMP=`mktemp -t security` if ip6fw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then check_diff new_only ip6fw ${TMP} "${host} ip6fw denied packets:" fi diff --git a/etc/periodic/security/650.ip6fwlimit b/etc/periodic/security/650.ip6fwlimit index 56cdf282ea96..eaf4b10ec69f 100755 --- a/etc/periodic/security/650.ip6fwlimit +++ b/etc/periodic/security/650.ip6fwlimit @@ -42,7 +42,7 @@ rc=0 case "$daily_status_security_ip6fwlimit_enable" in [Yy][Ee][Ss]) - TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + TMP=`mktemp -t security` IP6FW_LOG_LIMIT=`sysctl -n net.inet6.ip6.fw.verbose_limit 2> /dev/null` if [ $? -eq 0 ] && [ "${IP6FW_LOG_LIMIT}" -ne 0 ]; then ip6fw -a l | grep " log " | \ diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions index 20d3b8a90ee8..29c61aa4e392 100644 --- a/etc/periodic/security/security.functions +++ b/etc/periodic/security/security.functions @@ -52,7 +52,7 @@ check_diff() { msg="$1"; shift if [ "${tmpf}" = "-" ]; then - tmpf=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX` + tmpf=`mktemp -t security` cat > ${tmpf} fi diff --git a/etc/rc.d/motd b/etc/rc.d/motd index 69ed49e27c8d..8368e7c84468 100755 --- a/etc/rc.d/motd +++ b/etc/rc.d/motd @@ -38,7 +38,7 @@ motd_start() case ${OSTYPE} in FreeBSD) - T=`mktemp /tmp/_motd.XXXXXX` + T=`mktemp -t motd` uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > ${T} awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print "\n"$0}} else {print}}' < /etc/motd >> ${T} ;; |
