函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Calculate the memory required for serializing a single* binary_runtime_measurement list entry, which contains a* couple of variable length fields (e.g template name and data).

函数原型:static int get_binary_runtime_size(struct ima_template_entry *entry)

返回类型:int

参数:

类型参数名称
struct ima_template_entry *entry
77  size等于0
79  size加等于sizeof(u32)
80  size加等于 sha1 or md5 measurement hash 的长度
81  size加等于sizeof(int)
82  size加等于strlen - Find the length of a string*@s: The string to be sized
83  size加等于template_data_len的长度
84  size加等于template_data_len
85  返回:size
调用者
名称描述
ima_add_digest_entryma_add_template_entry helper function:* - Add template entry to the measurement list and hash table, for* all entries except those carried across kexec.* (Called with ima_extend_list_mutex held.)