以下是运行 tboot 的步骤:
Enable EFI booting mode in BIOS setup menu, enable VT-x, VT-d, TPM ,TXT in BIOS setup menu, save and exit
apt-get update
apt-get install tpm-tools
apt-get install mercurial
hg clone http://hg.code.sf.net/p/tboot/code tboot-code
cd tboot-code/tboot
make install
cd ../utils
make install
copy your /sbin/init to /boot
grub-mkconfig -o /boot/grub/grub.cfg
reboot
select tboot from grub boot menu
login as root
run txt-stat, after booting into ubuntu
取自这里:https : //sourceforge.net/p/tboot/wiki/Home/
实际上,在 Ubuntu 18.04.1 上它是这样工作的:
sudo txt-stat | grep TRUE
senter_done: TRUE
private_open: TRUE
locality_1_open: TRUE
locality_2_open: TRUE
secrets: TRUE
lock: TRUE
TXT measured launch: TRUE
secrets flag set: TRUE
TBOOT: TPM nv_locked: TRUE
TBOOT: TPM nv_locked: TRUE