Function report |
Source Code:security\integrity\ima\ima_appraise.c |
Create Date:2022-07-28 19:59:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ma_update_xattr - update 'security.ima' hash value
Proto:void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct integrity_iint_cache * | iint | |
| struct file * | file |
| 460 | dentry = file_dentry(file) |
| 461 | rc = 0 |
| 464 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return |
| 467 | If ima_file_status != INTEGRITY_PASS && Not (flags & IMA_HASH) Then Return |
| 472 | If rc < 0 Then Return |
| 475 | inode_lock(file_inode(file)) |
| 476 | ima_fix_xattr(dentry, iint) |
| 477 | inode_unlock(file_inode(file)) |
| 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 |