Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_queue.c Create Date:2022-07-28 19:57:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return the amount of memory required for serializing the* entire binary_runtime_measurement list, including the ima_kexec_hdr* structure.

Proto:static int ima_pcr_extend(const u8 *hash, int pcr)

Type:int

Parameter:

TypeParameterName
const u8 *hash
intpcr
141  result = 0
144  If Not ima_tpm_chip Then Return result
147  When i < nr_allocated_banks cycle memcpy(digest, hash, Max TPM v1.2 PCR size )
150  result = tpm_pcr_extend(ima_tpm_chip, pcr, pre-allocated array of tpm_digest structures to extend a PCR )
151  If result != 0 Then pr_err("Error Communicating to TPM chip, result: %d\n", result)
153  Return result
Caller
NameDescribe
ima_add_template_entryAdd template entry to the measurement list and hash table, and* extend the pcr.* On systems which support carrying the IMA measurement list across* kexec, maintain the total memory size required for serializing the* binary_runtime_measurements.