函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_fix_xattr

函数原型:static int ima_fix_xattr(struct dentry *dentry, struct integrity_iint_cache *iint)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
struct integrity_iint_cache *iint
65  algo等于algo
67  如果algo小于等于HASH_ALGO_SHA1
68  offset等于1
69  type等于IMA_XATTR_DIGEST
70  否则
71  offset等于0
72  type等于IMA_XATTR_DIGEST_NG
73  algo等于algo
75  rc等于__vfs_setxattr_noperm(dentry, XATTR_NAME_IMA, & data[offset], (xattr的长度 - offset) + length, 0)
79  返回: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
ima_update_xattrma_update_xattr - update 'security.ima' hash value