函数逻辑报告 |
Source Code:security\integrity\ima\ima_main.c |
Create Date:2022-07-27 21:59:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ma_rdwr_violation_check* Only invalidate the PCR for measured files:* - Opening a file for write when already open for read,* results in a time of measure, time of use (ToMToU) error.* - Opening a file for read when already open for write,
函数原型:static void ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| struct integrity_iint_cache * | iint | |
| int | must_measure | |
| char ** | pathbuf | |
| const char ** | pathname | |
| char * | filename |
| 113 | inode等于file_inode(file) |
| 115 | bool send_tomtou = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., send_writers = false |
| 117 | 如果mode按位与le is open for writing 则 |
| 118 | 如果atomic_read( & struct files open RO )且IS_IMA(inode)则 |
| 126 | 否则 |
| 127 | 如果must_measure则设置内存位 |
| 129 | 如果inode_is_open_for_write(inode)且must_measure则send_writers = true |
| 133 | 如果非send_tomtou且非send_writers则返回 |
| 136 | pathname等于ima_d_path( & f_path, pathbuf, filename) |
| 名称 | 描述 |
|---|---|
| process_measurement |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |