函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prevent mmap'ing a file execute that is already mmap'ed write

函数原型:static int mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename)

返回类型:int

参数:

类型参数名称
enum ima_hooksfunc
struct file *file
char **pathbuf
const char **pathname
char *filename
81  rc等于0
83  如果func恒等于MMAP_CHECKMight pages of this file have been modified in userspace?* Note that i_mmap_writable counts all VM_SHARED vmas: do_mmap_pgoff* marks vma as VM_SHARED if it is shared, and the file was opened for* writing i
84  rc等于负ETXTBSY
85  inode等于file_inode(file)
87  如果非pathbufpathname等于ima_d_path( & f_path, pathbuf, filename)
90  integrity_audit_msg(Data integrity verification , inode, * pathname, "mmap_file", "mmapped_writers", rc, 0)
93  返回:rc
调用者
名称描述
process_measurement