Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_mmap_handle_status

Proto:static int sel_mmap_handle_status(struct file *filp, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
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  If Offset (within vm_file) in PAGE_SIZEunits > 0 || size != PAGE_SIZE Then Return -EIO
257  If Flags, see mm.h. & VM_WRITE Then Return -EPERM
260  Flags, see mm.h. &= ~VM_MAYWRITE
262  Return remap_pfn_range(vma, Our start address within vm_mm. , page_to_pfn(status), size, Access permissions of this VMA. )