函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_inode_setattr - prevent updating an invalid EVM extended attribute*@dentry: pointer to the affected dentry* Permit update of file attributes when files have a valid EVM signature,* except in the case of them having an immutable portable signature.

函数原型:int evm_inode_setattr(struct dentry *dentry, struct iattr *attr)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
struct iattr *attr
475  ia_valid等于ia_valid
481  如果evm_initialized按位与EVM_ALLOW_METADATA_WRITES则返回:0
484  如果非ia_valid按位与Attribute flags. These should be or-ed together to figure out what* has been changed!按位或ATTR_UID按位或ATTR_GID的值的值则返回:0
486  evm_status等于vm_verify_current_integrity - verify the dentry's metadata integrity*@dentry: pointer to the affected dentry* Verify and return the dentry's metadata integrity. The exceptions are* before EVM is initialized or in 'fix' mode.
487  如果evm_status恒等于INTEGRITY_PASSevm_status恒等于INTEGRITY_NOXATTRS则返回:0
490  integrity_audit_msg(Metadata integrity verification , 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, name, "appraise_metadata", integrity_status_msg[evm_status], - EPERM, 0)
493  返回:负EPERM