函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_cache_flags

函数原型:static void ima_cache_flags(struct integrity_iint_cache *iint, enum ima_hooks func)

返回类型:void

参数:

类型参数名称
struct integrity_iint_cache *iint
enum ima_hooksfunc
131  :func恒等于MMAP_CHECK
132  flags或等于IMA_MMAP_APPRAISED按位或IMA_APPRAISED
133  退出
134  :func恒等于BPRM_CHECK
135  flags或等于IMA_BPRM_APPRAISED按位或IMA_APPRAISED
136  退出
137  :func恒等于CREDS_CHECK
138  flags或等于IMA_CREDS_APPRAISED按位或IMA_APPRAISED
139  退出
140  :func恒等于FILE_CHECK
141  :func恒等于POST_SETATTR
142  flags或等于IMA_FILE_APPRAISED按位或IMA_APPRAISED
143  退出
144  :func == MODULE_CHECK...MAX_CHECK - 1
145  默认
146  flags或等于IMA_READ_APPRAISED按位或IMA_APPRAISED
147  退出
调用者
名称描述
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