Explicitly set permissions on entropy files

Differential Revision:	https://reviews.freebsd.org/D3933
Submitted by:	jmg
Reviewed by:	delphij, markm
Approved by:	secteam (delphij)
MFC after:	3 days
X-MFC-to:	stable/10 stable/9
This commit is contained in:
Devin Teske 2015-12-28 17:27:20 +00:00
parent a18742e938
commit ed27536fd5

View File

@ -26,4 +26,9 @@
#
# $FreeBSD$
dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
umask 077
for i in /entropy /boot/entropy; do
i="$BSDINSTALL_CHROOT/$i"
dd if=/dev/random of="$i" bs=4096 count=1
chown 0:0 "$i"
done