Date: Mon, 28 Dec 2015 17:27:20 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292832 - head/usr.sbin/bsdinstall/scripts Message-ID: <201512281727.tBSHRK4n079544@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512281727.tBSHRK4n079544>