Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ap_vm_enough_memory - Determine whether a new virtual mapping is permitted*@mm: The VM space in which the new mapping is to be made*@pages: The size of the mapping* Determine whether the allocation of a new virtual mapping by the current

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

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
longpages
1302  cap_sys_admin = 0
1304  If ap_capable - Determine whether a task has a particular effective capability*@cred: The credentials to use*@ns: The user namespace in which we need the capability*@cap: The capability to check for*@opts: Bitmask of options defined in include/linux/security == 0 Then cap_sys_admin = 1
1308  Return cap_sys_admin