Function report |
Source Code:security\integrity\ima\ima_appraise.c |
Create Date:2022-07-28 19:59:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_fix_xattr
Proto:static int ima_fix_xattr(struct dentry *dentry, struct integrity_iint_cache *iint)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry | |
struct integrity_iint_cache * | iint |
67 | If algo <= HASH_ALGO_SHA1 Then |
68 | offset = 1 |
69 | type = IMA_XATTR_DIGEST |
70 | Else |
75 | rc = __vfs_setxattr_noperm(dentry, XATTR_NAME_IMA, & data[offset], ( size of xattr - offset) + length, 0) |
79 | Return rc |
Name | Describe |
---|---|
ima_appraise_measurement | ma_appraise_measurement - appraise file measurement* Call evm_verifyxattr() to verify the integrity of 'security.ima'.* Assuming success, compare the xattr hash with the collected measurement.* Return 0 on success, error code otherwise |
ima_update_xattr | ma_update_xattr - update 'security.ima' hash value |
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 |