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_update_xattr - update 'security.ima' hash value

Proto:void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file)

Type:void

Parameter:

TypeParameterName
struct integrity_iint_cache *iint
struct file *file
460  dentry = file_dentry(file)
461  rc = 0
464  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return
467  If ima_file_status != INTEGRITY_PASS && Not (flags & IMA_HASH) Then Return
471  rc = ma_collect_measurement - collect file measurement* Calculate the file hash, if it doesn't already exist,* storing the measurement and i_version in the iint.* Must be called with iint->mutex held.* Return 0 on success, error code otherwise
472  If rc < 0 Then Return
475  inode_lock(file_inode(file))
476  ima_fix_xattr(dentry, iint)
477  inode_unlock(file_inode(file))