函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:evm_find_protected_xattrs

函数原型:static int evm_find_protected_xattrs(struct dentry *dentry)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
94  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
97  count等于0
99  如果非i_opflags按位与IOP_XATTR的值则返回:负EOPNOTSUPP
103  error等于__vfs_getxattr(dentry, inode, name, NULL, 0)
104  如果error小于0则
105  如果error恒等于负ENODATA则继续下一循环
107  返回:error
109  count自加
112  返回:count
调用者
名称描述
evm_verify_hmacvm_verify_hmac - calculate and compare the HMAC with the EVM xattr* Compute the HMAC on the dentry's protected set of extended attributes* and compare it against the stored security