Documentation ¶
Overview ¶
Package launcher boots the target kernel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Launcher ¶
describes the "launcher" section of policy file
func (*Launcher) Boot ¶
func (l *Launcher) Boot(tpmDev io.ReadWriteCloser) error
* Boot boots the target kernel based on information provided * in the "launcher" section of policy file. * * Summary of steps: * - extracts the kernel, initrd and cmdline from the "launcher" section of policy file. * - measures the kernel and initrd file into the tpmDev (tpm device). * - mounts the disks where the kernel and initrd file are located. * - uses kexec to boot into the target kernel. * returns error * - if measurement of kernel and initrd fails * - if mount fails * - if kexec fails
func (*Launcher) MeasureKernel ¶
func (l *Launcher) MeasureKernel(tpmDev io.ReadWriteCloser) error
MeasureKernel calls file collector in measurement pkg that hashes kernel, initrd files and even store these hashes in tpm pcrs.