Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ma_collect_modsig - Calculate the file hash without the appended signature.* Since the modsig is part of the file contents, the hash used in its signature* isn't the same one ordinarily calculated by IMA. Therefore PKCS7 code

Proto:void ima_collect_modsig(struct modsig *modsig, const void *buf, loff_t size)

Type:void

Parameter:

TypeParameterName
struct modsig *modsig
const void *buf
loff_tsize
125  size -= * This is what will go to the measurement list if the template requires * storing the signature. + strlen - Find the length of a string*@s: The string to be sized + sizeof(structmodule_signature)
127  rc = pkcs7_supply_detached_data(pkcs7_msg, buf, size)
128  If rc Then Return
132  rc = pkcs7_get_digest(pkcs7_msg, & This digest will go in the 'd-modsig' field of the IMA template. , & digest_size, & hash_algo)