aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-10-15 14:20:27 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-10-15 14:20:27 +0000
commitc6da9bfac369123fd253f08769816515395c782d (patch)
treed3b01347a8b959ebcc55152f62e31eb1e6530b7e /rc.d
parent5714c37ea52e176ef8d59a2406cd58ad24c9ab16 (diff)
downloadinitscripts-c6da9bfac369123fd253f08769816515395c782d.tar
initscripts-c6da9bfac369123fd253f08769816515395c782d.tar.gz
initscripts-c6da9bfac369123fd253f08769816515395c782d.tar.bz2
initscripts-c6da9bfac369123fd253f08769816515395c782d.tar.xz
initscripts-c6da9bfac369123fd253f08769816515395c782d.zip
Make random seed file mode 600.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/random3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/init.d/random b/rc.d/init.d/random
index 995061b6..e394feb4 100755
--- a/rc.d/init.d/random
+++ b/rc.d/init.d/random
@@ -19,6 +19,7 @@ case "$1" in
if [ -f $random_seed ]; then
cat $random_seed >/dev/urandom
fi
+ chmod 600 $random_seed
dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
touch /var/lock/subsys/random
@@ -27,6 +28,8 @@ case "$1" in
# Carry a random seed from shut-down to start-up
# Save 512 bytes, which is the size of the entropy pool
echo "Saving random seed..."
+ touch $random_seed
+ chmod 600 $random_seed
dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
rm -f /var/lock/subsys/random