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:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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).

Proto:static int get_binary_runtime_size(struct ima_template_entry *entry)

Type:int

Parameter:

TypeParameterName
struct ima_template_entry *entry
77  size = 0
79  size += sizeof(u32)
80  size += size of 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 += size of template_data_len
84  size += template_data_len
85  Return size
Caller
NameDescribe
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.)