dmverity

package
v0.0.0-...-55306fc Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	RootHash string `json:"root-hash"`
}

Info represents the dm-verity related data that:

  1. are not included in the superblock which is generated by default when running veritysetup.
  2. need their authenticity verified prior to loading the integrity data into the kernel.

For now, since we are keeping the superblock as it is, this only includes the root hash.

func Format

func Format(dataDevice string, hashDevice string) (*Info, error)

Format runs "veritysetup format" and returns an Info struct which includes the root hash. "veritysetup format" calculates the hash verification data for dataDevice and stores them in hashDevice. The root hash is retrieved from the command's stdout.

Jump to

Keyboard shortcuts

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