Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Validating the appended signature included in the measurement list requires* the file hash calculated without the appended signature (i.e., the 'd-modsig'* field). Therefore, notify the user if they have the 'modsig' field but not

Proto:static void check_template_modsig(const struct ima_template_desc *template)

Type:void

Parameter:

TypeParameterName
const struct ima_template_desc *template
874  If checked Then Return
877  has_modsig = has_dmodsig = false
878  When i < num_fields cycle
879  If Not strcmp(field_id, "modsig") Then has_modsig = true
881  Else if Not strcmp(field_id, "d-modsig") Then has_dmodsig = true
885  If has_modsig && Not has_dmodsig Then pr_notice(Validating the appended signature included in the measurement list requires* the file hash calculated without the appended signature (i.e., the 'd-modsig'* field). Therefore, notify the user if they have the 'modsig' field but not)
888  checked = true
Caller
NameDescribe
ima_parse_rule