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:vm_inode_setxattr - protect the EVM extended attribute*@dentry: pointer to the affected dentry*@xattr_name: pointer to the affected extended attribute name*@xattr_value: pointer to the new extended attribute value*@xattr_value_len: pointer to the new

Proto:int evm_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
const char *xattr_name
const void *xattr_value
size_txattr_value_len
374  xattr_data = xattr_value
379  If evm_initialized & EVM_ALLOW_METADATA_WRITES Then Return 0
382  If strcmp(xattr_name, XATTR_NAME_EVM) == 0 Then
383  If Not xattr_value_len Then Return -EINVAL
385  If type != EVM_IMA_XATTR_DIGSIG && type != EVM_XATTR_PORTABLE_DIGSIG Then Return -EPERM
389  Return vm_protect_xattr - protect the EVM extended attribute* Prevent security.evm from being modified or removed without the* necessary permissions or when the existing value is invalid.* The posix xattr acls are 'system' prefixed, which normally would not