aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-05-27 16:36:44 +0000
committerBill Nottingham <notting@redhat.com>2003-05-27 16:36:44 +0000
commit515094b273406277de12adc648846435e27ce389 (patch)
tree2707731547d810dd4c5161f1444c9d6a439a1d5d
parent461b8323c307774e1cd413fb920f9e958028d1a5 (diff)
downloadinitscripts-515094b273406277de12adc648846435e27ce389.tar
initscripts-515094b273406277de12adc648846435e27ce389.tar.gz
initscripts-515094b273406277de12adc648846435e27ce389.tar.bz2
initscripts-515094b273406277de12adc648846435e27ce389.tar.xz
initscripts-515094b273406277de12adc648846435e27ce389.zip
make ksyms.* 0600
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 56b9810a..ef7e94a2 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -795,6 +795,7 @@ dmesg -s 131072 > /var/log/dmesg
i=5
while [ $i -ge 0 ]; do
if [ -f /var/log/ksyms.$i ]; then
+ chmod 0600 /var/log/ksyms.$i
mv /var/log/ksyms.$i /var/log/ksyms.$(($i+1))
fi
i=$(($i-1))
@@ -805,6 +806,7 @@ done
[ -r /proc/modules ] && cat /proc/modules
[ -r /proc/ksyms ] && cat /proc/ksyms
} > /var/log/ksyms.0
+chmod 600 /var/log/ksyms.0
# create the crash indicator flag to warn on crashes, offer fsck with timeout
touch /.autofsck
kill -TERM `/sbin/pidof getkey` >/dev/null 2>&1