Function report |
Source Code:security\integrity\evm\evm_main.c |
Create Date:2022-07-28 19:59:57 |
| 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_setxattr - protect the EVM extended attribute*@dentry: pointer to the affected dentry*@xattr_name: pointer to the affected extended attribute name*@xattr_value: pointer to the new extended attribute value*@xattr_value_len: pointer to the new
Proto:int evm_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| const char * | xattr_name | |
| const void * | xattr_value | |
| size_t | xattr_value_len |
| 374 | xattr_data = xattr_value |
| 379 | If evm_initialized & EVM_ALLOW_METADATA_WRITES Then Return 0 |
| 382 | If strcmp(xattr_name, XATTR_NAME_EVM) == 0 Then |
| 383 | If Not xattr_value_len Then Return -EINVAL |
| 385 | If type != EVM_IMA_XATTR_DIGSIG && type != EVM_XATTR_PORTABLE_DIGSIG Then 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 |