看板FB_security
標 題Re: Collecting entropy from device_attach() times.
發信站NCTU CS FreeBSD Server (Fri Sep 28 09:30:50 2012)
轉信站ptt!csnews.cs.nctu!news.cs.nctu!FreeBSD.cs.nctu!freebsd.org!owner-free
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=3D/dev/zero of=3D/dev/da0 bs=3D1m count=3D1
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
--=20
Dag-Erling Sm=C3=B8rgrav -
[email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "
[email protected]"