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 ¶
Launcher describes the "launcher" section of policy file.
func (*Launcher) Boot ¶
Boot boots the target kernel based on information provided in the "launcher" section of the policy file.
Summary of steps: - extract the kernel, initrd and cmdline from the "launcher" section of policy file. - measure the kernel and initrd file into the tpmDev (tpm device). - mount the disks where the kernel and initrd file are located. - 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 ¶
MeasureKernel hashes the kernel and initrd files and extends those measurements into a TPM PCR.