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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to