aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
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