函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int selinux_vm_enough_memory(struct mm_struct *mm, long pages)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
longpages
2249  cap_sys_admin等于0
2251  rc等于Check whether a task is allowed to use a capability.
2253  如果rc恒等于0则cap_sys_admin等于1
2256  返回:cap_sys_admin