函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:grity_kernel_read - read data from the file* This is a function for reading file content instead of kernel_read().* It does not perform locking checks to ensure it cannot be blocked.* It does not perform security checks because it is irrelevant for IMA.

函数原型:int integrity_kernel_read(struct file *file, loff_t offset, void *addr, unsigned long count)

返回类型:int

参数:

类型参数名称
struct file *file
loff_toffset
void *addr
unsigned longcount
192  __userbuf等于addr
195  如果非f_mode按位与le is open for reading 的值则返回:负EBADF
198  old_fs等于获取当前进程地址空间上限()
199  set_fs(KERNEL_DS)
200  ret等于__vfs_read(file, buf, count, & offset)
201  设置寄存器值(fs)
203  返回:ret
调用者
名称描述
ima_calc_file_hash_atfm
ima_calc_file_hash_tfm