Function report |
Source Code:security\integrity\ima\ima_main.c |
Create Date:2022-07-28 19:58:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_check_last_writer
Proto:static void ima_check_last_writer(struct integrity_iint_cache *iint, struct inode *inode, struct file *file)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct integrity_iint_cache * | iint | |
| struct inode * | inode | |
| struct file * | file |
| 152 | If Not (mode & le is open for writing ) Then Return |
| 156 | If atomic_read( & i_writecount) == 1 Then |
| 157 | update = st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). |
| 162 | flags &= ~(IMA_DONE_MASK | IMA_NEW_FILE) |
| 163 | measured_pcrs = 0 |
| 164 | If update Then ima_update_xattr(iint, file) |
| Name | Describe |
|---|---|
| ima_file_free | ma_file_free - called on __fput()*@file: pointer to file structure being freed* Flag files that changed, based on i_version |
| 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 |