launcher

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: BSD-3-Clause Imports: 8 Imported by: 8

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

type Launcher struct {
	Type   string            `json:"type"`
	Params map[string]string `json:"params"`
}

Launcher describes the "launcher" section of policy file.

func (*Launcher) Boot

func (l *Launcher) Boot() error

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) MeasureInitrd added in v0.10.0

func (l *Launcher) MeasureInitrd() error

MeasureInitrd hashes the initrd and extends the measurement into a TPM PCR.

func (*Launcher) MeasureKernel

func (l *Launcher) MeasureKernel() error

MeasureKernel hashes the kernel and extends the measurement into a TPM PCR.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL