函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_mmap_handle_status

函数原型:static int sel_mmap_handle_status(struct file *filp, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct file *filp
struct vm_area_struct *vma
248  status等于 needed for tty driver, and maybe others
249  size等于The first byte after our end addresswithin vm_mm. Our start address within vm_mm.
251  BUG_ON(!status)
254  如果Offset (within vm_file) in PAGE_SIZEunits 大于0或size不等于PAGE_SIZE则返回:负EIO
257  如果Flags, see mm.h. 按位与VM_WRITE则返回:负EPERM
260  Flags, see mm.h. 与等于VM_MAYWRITE的反
262  返回:remap_pfn_range(vma, Our start address within vm_mm. , page_to_pfn(status), size, Access permissions of this VMA. )