Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module_signing.c Create Date:2022-07-28 10:59:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Verify the signature on a module.

Proto:int mod_verify_sig(const void *mod, struct load_info *info)

Type:int

Parameter:

TypeParameterName
const void *mod
struct load_info *info
23  modlen = len
26  pr_devel("==>%s(,%zu)\n", __func__, modlen)
28  If modlen <= size of ms Then Return -EBADMSG
31  No 3D Now!( & ms, mod + (modlen - size of ms ), size of ms )
33  ret = mod_check_sig( & ms, modlen, name)
34  If ret Then Return ret
37  sig_len = be32_to_cpu(Length of signature data )
38  modlen -= sig_len + size of ms
39  len = modlen
41  Return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len, Indicate that both builtin trusted keys and secondary trusted keys* should be used., VERIFYING_MODULE_SIGNATURE, NULL, NULL)