函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_queue.c Create Date:2022-07-27 21:58:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Return the amount of memory required for serializing the* entire binary_runtime_measurement list, including the ima_kexec_hdr* structure.

函数原型:static int ima_pcr_extend(const u8 *hash, int pcr)

返回类型:int

参数:

类型参数名称
const u8 *hash
intpcr
141  result等于0
144  如果非ima_tpm_chip则返回:result
147 i小于nr_allocated_banks循环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  如果result不等于0则打印错误信息("Error Communicating to TPM chip, result: %d\n", result)
153  返回:result
调用者
名称描述
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.