svn commit: r292832 - head/usr.sbin/bsdinstall/scripts

Devin Teske dteske at FreeBSD.org
Mon Dec 28 17:27:21 UTC 2015


Author: dteske
Date: Mon Dec 28 17:27:20 2015
New Revision: 292832
URL: https://svnweb.freebsd.org/changeset/base/292832

Log:
  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

Modified:
  head/usr.sbin/bsdinstall/scripts/entropy

Modified: head/usr.sbin/bsdinstall/scripts/entropy
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/entropy	Mon Dec 28 09:26:07 2015	(r292831)
+++ head/usr.sbin/bsdinstall/scripts/entropy	Mon Dec 28 17:27:20 2015	(r292832)
@@ -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


More information about the svn-src-head mailing list