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:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ma_inode_post_setattr - reflect file metadata changes*@dentry: pointer to the affected dentry* Changes to a dentry's metadata might result in needing to appraise.* This function is called from notify_change(), which expects the caller

Proto:void ima_inode_post_setattr(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
491  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
495  If Not (ima_policy_flag & IMA_APPRAISE) || Not S_ISREG(i_mode) || Not (i_opflags & IOP_XATTR) Then Return
499  action = ma_must_appraise - set appraise flag* Return 1 to appraise or hash
500  If Not action Then __vfs_removexattr(dentry, XATTR_NAME_IMA)
502  iint = grity_iint_find - return the iint associated with an inode
503  If iint Then
504  Atomically set a bit in memory
505  If Not action Then lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).