Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\iint.c Create Date:2022-07-28 19:56:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int integrity_kernel_read(struct file *file, loff_t offset, void *addr, unsigned long count)

Type:int

Parameter:

TypeParameterName
struct file *file
loff_toffset
void *addr
unsigned longcount
192  __user * buf = addr
195  If Not (f_mode & le is open for reading ) Then Return -EBADF
198  old_fs = get_fs()
199  set_fs(KERNEL_DS)
200  ret = __vfs_read(file, buf, count, & offset)
201  set_fs(old_fs)
203  Return ret
Caller
NameDescribe
ima_calc_file_hash_atfm
ima_calc_file_hash_tfm