// GetImaRuntimeDigests returns all hashes extended by the IMA into the TPM
// IMA PCR as read from the sysfs
GetImaRuntimeDigests returns all hashes extended by the IMA into the TPM
IMA PCR as read from the sysfs
// GetImaRuntimeDigests returns all hashes extended by the IMA into the TPM // IMA PCR as read from the sysfs
func GetImaRuntimeDigests() ([][SHA256_DIGEST_LEN]byte, error) {
	data, err := ioutil.ReadFile("/sys/kernel/security/ima/binary_runtime_measurements")
	if err != nil {
		log.Error("Failed to load IMA runtime measurements from /sys/kernel/security/ima/binary_runtime_measurements - ", err)
		return nil, err
	}
	digests, err := parseImaRuntimeDigests(data)
	if err != nil {
		log.Error("Failed to parse IMA runtime digests - ", err)
		return nil, err
	}
	return digests, nil
}
func GetImaRuntimeDigests ( ) ( [ ] [ SHA256_DIGEST_LEN ] byte , error ) { data , err := ioutil . ReadFile ( " " ) if err != nil { log . Error ( " " , err ) return nil , err } digests , err := parseImaRuntimeDigests ( data ) if err != nil { log . Error ( " " , err ) return nil , err } return digests , nil }
GetImaRuntimeDigests returns all hashes extended by the IMA into the TPM
IMA PCR as read from the sysfs
GetImaRuntimeDigests returns all hashes extended by the IMA into the TPM IMA PCR as read from the sysfs