summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-05-17 11:34:12 +0000
committerbrian <brian@FreeBSD.org>2002-05-17 11:34:12 +0000
commite0e62927affbd6970819409158a8811691e0eca5 (patch)
tree0cf2a881667630155e3c937697129994fadac661 /etc/periodic
parent4068215add3aa94489f98bcedd0e8eaa8f92752c (diff)
downloadFreeBSD-src-e0e62927affbd6970819409158a8811691e0eca5.zip
FreeBSD-src-e0e62927affbd6970819409158a8811691e0eca5.tar.gz
Tighten up temporary file permissions and move them to ${TMPDIR:-/tmp}
Problem reported by: lumpy <lumpy@the.whole.net> MFC after: 3 days
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/security/100.chksetuid2
-rwxr-xr-xetc/periodic/security/200.chkmounts2
-rwxr-xr-xetc/periodic/security/500.ipfwdenied2
-rwxr-xr-xetc/periodic/security/550.ipfwlimit2
-rwxr-xr-xetc/periodic/security/600.ip6fwdenied2
-rwxr-xr-xetc/periodic/security/650.ip6fwlimit2
-rwxr-xr-xetc/periodic/security/700.kernelmsg2
7 files changed, 7 insertions, 7 deletions
diff --git a/etc/periodic/security/100.chksetuid b/etc/periodic/security/100.chksetuid
index 8eecf7d..16411c0 100755
--- a/etc/periodic/security/100.chksetuid
+++ b/etc/periodic/security/100.chksetuid
@@ -35,7 +35,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
LOG="${daily_status_security_logdir}"
rc=0
diff --git a/etc/periodic/security/200.chkmounts b/etc/periodic/security/200.chkmounts
index c580c9e..5d3116b 100755
--- a/etc/periodic/security/200.chkmounts
+++ b/etc/periodic/security/200.chkmounts
@@ -38,7 +38,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
LOG="${daily_status_security_logdir}"
ignore="${daily_status_security_chkmounts_ignore}"
rc=0
diff --git a/etc/periodic/security/500.ipfwdenied b/etc/periodic/security/500.ipfwdenied
index ac08b4b..b18e1cf 100755
--- a/etc/periodic/security/500.ipfwdenied
+++ b/etc/periodic/security/500.ipfwdenied
@@ -39,7 +39,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
LOG="${daily_status_security_logdir}"
rc=0
diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit
index cb6caaf..3d54331 100755
--- a/etc/periodic/security/550.ipfwlimit
+++ b/etc/periodic/security/550.ipfwlimit
@@ -38,7 +38,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
rc=0
case "$daily_status_security_ipfwlimit_enable" in
diff --git a/etc/periodic/security/600.ip6fwdenied b/etc/periodic/security/600.ip6fwdenied
index 36315c2..5ab1759 100755
--- a/etc/periodic/security/600.ip6fwdenied
+++ b/etc/periodic/security/600.ip6fwdenied
@@ -38,7 +38,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
LOG="${daily_status_security_logdir}"
rc=0
diff --git a/etc/periodic/security/650.ip6fwlimit b/etc/periodic/security/650.ip6fwlimit
index a713908..2a1af39 100755
--- a/etc/periodic/security/650.ip6fwlimit
+++ b/etc/periodic/security/650.ip6fwlimit
@@ -38,7 +38,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
rc=0
case "$daily_status_security_ip6fwlimit_enable" in
diff --git a/etc/periodic/security/700.kernelmsg b/etc/periodic/security/700.kernelmsg
index a0b6a00..4af36fc 100755
--- a/etc/periodic/security/700.kernelmsg
+++ b/etc/periodic/security/700.kernelmsg
@@ -38,7 +38,7 @@ then
source_periodic_confs
fi
-TMP=/var/run/_secure.$$
+TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
LOG="${daily_status_security_logdir}"
rc=0
OpenPOWER on IntegriCloud