Function report |
Source Code:security\integrity\evm\evm_main.c |
Create Date:2022-07-28 19:59:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int evm_inode_setattr(struct dentry *dentry, struct iattr *attr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| struct iattr * | attr |
| 481 | If evm_initialized & EVM_ALLOW_METADATA_WRITES Then Return 0 |
| 484 | If Not (ia_valid & ( Attribute flags. These should be or-ed together to figure out what* has been changed! | ATTR_UID | ATTR_GID)) Then Return 0 |
| 487 | If evm_status == INTEGRITY_PASS || evm_status == INTEGRITY_NOXATTRS Then Return 0 |
| 493 | Return -EPERM |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |