Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_set_cache_status

Proto:static void ima_set_cache_status(struct integrity_iint_cache *iint, enum ima_hooks func, enum integrity_status status)

Type:void

Parameter:

TypeParameterName
struct integrity_iint_cache *iint
enum ima_hooksfunc
enum integrity_statusstatus
107  Case func == MMAP_CHECK
108  ima_mmap_status = status
109  Break
110  Case func == BPRM_CHECK
111  ima_bprm_status = status
112  Break
113  Case func == CREDS_CHECK
114  ima_creds_status = status
115  Break
116  Case func == FILE_CHECK
117  Case func == POST_SETATTR
118  ima_file_status = status
119  Break
120  Case func == MODULE_CHECK...MAX_CHECK - 1
121  Default
122  ima_read_status = status
123  Break
Caller
NameDescribe
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