Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:evm_find_protected_xattrs

Proto:static int evm_find_protected_xattrs(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
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  If Not (i_opflags & IOP_XATTR) Then Return -EOPNOTSUPP
103  error = __vfs_getxattr(dentry, inode, name, NULL, 0)
104  If error < 0 Then
105  If error == -ENODATA Then Continue
107  Return error
109  count++
112  Return count
Caller
NameDescribe
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