diff options
author | dteske <dteske@FreeBSD.org> | 2015-12-28 17:27:20 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2015-12-28 17:27:20 +0000 |
commit | bd647f05b431df82cb8b33b8890e68a7e46c1c33 (patch) | |
tree | 5e12d26a67a66f4dd9ca0c3d58012c8330976627 /usr.sbin | |
parent | bcf874d1da26d2c25e7962adf131871bf5ebf39b (diff) | |
download | FreeBSD-src-bd647f05b431df82cb8b33b8890e68a7e46c1c33.zip FreeBSD-src-bd647f05b431df82cb8b33b8890e68a7e46c1c33.tar.gz |
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
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/bsdinstall/scripts/entropy | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/entropy b/usr.sbin/bsdinstall/scripts/entropy index add6f30..d3938f1 100755 --- a/usr.sbin/bsdinstall/scripts/entropy +++ b/usr.sbin/bsdinstall/scripts/entropy @@ -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 |