Function report |
Source Code:security\integrity\ima\ima_main.c |
Create Date:2022-07-28 19:58:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ma_post_read_file - in memory collect/appraise/audit measurement*@file: pointer to the file to be measured/appraised/audit*@buf: pointer to in memory file contents*@size: size of in memory file contents*@read_id: caller identifier
Proto:int ima_post_read_file(struct file *file, void *buf, loff_t size, enum kernel_read_file_id read_id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
void * | buf | |
loff_t | size | |
enum kernel_read_file_id | read_id |
553 | If Not file && read_id == READING_FIRMWARE Then |
554 | If ima_appraise & IMA_APPRAISE_FIRMWARE && ima_appraise & Appraise integrity measurements Then |
559 | Return 0 |
563 | If Not file && read_id == READING_X509_CERTIFICATE Then Return 0 |
567 | If ima_appraise & Appraise integrity measurements Then Return -EACCES |
569 | Return 0 |
572 | func = If read_idmap[read_id] Else FILE_CHECK |
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 |