Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:evm_is_immutable

Proto:static int evm_is_immutable(struct dentry *dentry, struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
271  const struct evm_ima_xattr_data * xattr_data = NULL
273  rc = 0
275  iint = grity_iint_find - return the iint associated with an inode
276  If iint && flags & EVM_IMMUTABLE_DIGSIG Then Return 1
280  rc = vfs_getxattr_alloc(dentry, XATTR_NAME_EVM, (char * * ) & xattr_data, 0, GFP_NOFS)
282  If rc <= 0 Then
283  If rc == -ENODATA Then Return 0
285  Return rc
287  If type == EVM_XATTR_PORTABLE_DIGSIG Then rc = 1
289  Else rc = 0
292  kfree(xattr_data)
293  Return rc
Caller
NameDescribe
evm_update_evmxattrCalculate the hmac and update security.evm xattr* Expects to be called with i_mutex locked.