Collecting entropy from device_attach() times.
Dag-Erling Smørgrav
des at des.no
Thu Sep 27 23:30:53 UTC 2012
I now have two EPIAs, a laptop and a VirtualBox VM gathering data using
this patch:
http://people.freebsd.org/~des/software/attachtimes.diff
If you want to join in, here's how to prepare a USB stick:
fetch http://people.freebsd.org/~des/software/attachtimes.tgz
dd if=/dev/zero of=/dev/da0 bs=1m count=1
gpart create -s gpt da0
gpart bootcode -b /boot/pmbr da0
gpart add -b 34 -s 94 -t freebsd-boot da0
gpart bootcode -p /boot/gptboot -i 1 da0
gpart add -t freebsd-ufs da0
newfs -Uj /dev/da0p2
mount -t ufs /dev/da0p2 /mnt
tar zxf attachtimes.tgz -C /mnt
sed -i.orig -e 's/ada0/da0/' /mnt/etc/fstab
umount /mnt
or a VirtualBox disk image:
fetch http://people.freebsd.org/~des/software/attachtimes.tgz
rm -f attachtimes.img
truncate -s 4G attachtimes.img
mdconfig attachtimes.img
gpart create -s gpt md0
gpart bootcode -b /boot/pmbr md0
gpart add -b 34 -s 94 -t freebsd-boot md0
gpart bootcode -p /boot/gptboot -i 1 md0
gpart add -t freebsd-ufs md0
newfs -Uj /dev/md0p2
mount -t ufs /dev/md0p2 /mnt
tar zxf attachtimes.tgz -C /mnt
vi /mnt/boot/loader.conf
# remove the ata hint
umount /mnt
mdconfig -d -u 0
VBoxManage convertfromraw attachtimes.img attachtimes.vdi
The kernel and binaries in the tarball are 32-bit. The updated patch is
at http://people.freebsd.org/~des/software/attachtimes.diff.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-security
mailing list