Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check that a process has enough memory to allocate a new virtual* mapping. 0 means there is enough memory for the allocation to* succeed and -ENOMEM implies there is not.* Do not audit the selinux permission check, as this is applied to all

Proto:static int selinux_vm_enough_memory(struct mm_struct *mm, long pages)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
longpages
2249  cap_sys_admin = 0
2251  rc = Check whether a task is allowed to use a capability.
2253  If rc == 0 Then cap_sys_admin = 1
2256  Return cap_sys_admin