verity

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const VerityRootHashAnnotation = "io.stackeroci.stacker.atomfs_verity_root_hash"

Variables

View Source
var CryptsetupTooOld = errors.Errorf("libcryptsetup not new enough, need >= 2.3.0")

Functions

func AppendVerityData

func AppendVerityData(file string) (string, error)

func ConfirmExistingVerityDeviceCurrentValidity

func ConfirmExistingVerityDeviceCurrentValidity(devicePath string) error

func ConfirmExistingVerityDeviceHash

func ConfirmExistingVerityDeviceHash(devicePath string, rootHash string, allowVerityFailure bool) error

func VerityHostMount

func VerityHostMount(fsImgFile string, fsType string, mountpoint string, rootHash string, veritySize int64, verityOffset uint64) error

func VerityUnmount

func VerityUnmount(mountPath string) error

Types

type VerityMetadata

type VerityMetadata bool
const (
	VeritySuffix = "verity"

	VerityMetadataPresent VerityMetadata = true
	VerityMetadataMissing VerityMetadata = false
)

Jump to

Keyboard shortcuts

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