launcher

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 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"`
}

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 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() error

MeasureKernel calls file collector in measurement pkg that hashes kernel, initrd files and even store these hashes in tpm pcrs.

Jump to

Keyboard shortcuts

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