函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:modsig_verify - verify modsig signature* Verify whether the signature matches the file contents.* Return 0 on success, error code otherwise.

函数原型:static int modsig_verify(enum ima_hooks func, const struct modsig *modsig, enum integrity_status *status, const char **cause)

返回类型:int

参数:

类型参数名称
enum ima_hooksfunc
const struct modsig *modsig
enum integrity_status *status
const char **cause
292  rc等于integrity_modsig_verify(INTEGRITY_KEYRING_IMA, modsig)
293  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_INTEGRITY_PLATFORM_KEYRING)且rcfunc恒等于KEXEC_KERNEL_CHECKrc等于integrity_modsig_verify(INTEGRITY_KEYRING_PLATFORM, modsig)
297  如果rc
298  cause等于"invalid-signature"
299  status等于INTEGRITY_FAIL
300  否则
301  status等于INTEGRITY_PASS
304  返回:rc
调用者
名称描述
ima_appraise_measurementma_appraise_measurement - appraise file measurement* Call evm_verifyxattr() to verify the integrity of 'security.ima'.* Assuming success, compare the xattr hash with the collected measurement.* Return 0 on success, error code otherwise