Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_mmap_policy_fault

Proto:static vm_fault_t sel_mmap_policy_fault(struct vm_fault *vmf)

Type:vm_fault_t

Parameter:

TypeParameterName
struct vm_fault *vmf
457  plm = private_data
461  If FAULT_FLAG_xxx flags & (Fault was mkwrite of existing pte | Fault was a write access ) Then Return VM_FAULT_SIGBUS
464  offset = Logical page offset based on vma << PAGE_SHIFT determines the page size
465  If offset >= undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(len, PAGE_SIZE) Then Return VM_FAULT_SIGBUS
468  page = vmalloc_to_page(data + offset)
469  get_page(page)
471  ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR). = page
473  Return 0