函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_main.c Create Date:2022-07-27 21:59:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int ima_post_read_file(struct file *file, void *buf, loff_t size, enum kernel_read_file_id read_id)

返回类型:int

参数:

类型参数名称
struct file *file
void *buf
loff_tsize
enum kernel_read_file_idread_id
553  如果非fileread_id恒等于READING_FIRMWARE
556  打印错误信息("Prevent firmware loading_store.\n")
557  返回:负EACCES
559  返回:0
563  如果非fileread_id恒等于READING_X509_CERTIFICATE则返回:0
566  如果非file或非bufsize恒等于0则
567  如果ima_appraise按位与Appraise integrity measurements 则返回:负EACCES
569  返回:0
572  func等于如果read_idmap[read_id]否则FILE_CHECK
573  security_task_getsecid(当前进程, & secid)
574  返回:process_measurement(file, current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.(), secid, buf, size, MAY_READ, func)