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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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