Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_inode_setxattr

Proto:int ima_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
547  xvalue = xattr_value
550  result = ma_protect_xattr - protect 'security.ima'* Ensure that not just anyone can modify or remove 'security.ima'.
552  If result == 1 Then
553  If Not xattr_value_len || type >= IMA_XATTR_LAST Then Return -EINVAL
555  ima_reset_appraise_flags(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, type == EVM_IMA_XATTR_DIGSIG)
557  result = 0
559  Return result