函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_appraise.c Create Date:2022-07-27 22:06:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ma_update_xattr - update 'security.ima' hash value

函数原型:void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file)

返回类型:void

参数:

类型参数名称
struct integrity_iint_cache *iint
struct file *file
460  dentry等于file_dentry(file)
461  rc等于0
464  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回
467  如果ima_file_status不等于INTEGRITY_PASS且非flags按位与IMA_HASH的值则返回
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  如果rc小于0则返回
475  inode_lock(file_inode(file))
476  ima_fix_xattr(dentry, iint)
477  inode_unlock(file_inode(file))