函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: lock must be held

函数原型:static int check_prlimit_permission(struct task_struct *task, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct task_struct *task
unsigned intflags
1589  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
1592  如果当前进程恒等于task则返回:0
1595  tcred等于__task_cred - Access a task's objective credentials*@task: The task to query* Access the objective credentials of a task. The caller must hold the RCU* readlock.* The result of this function should not be passed directly to get_cred();(task)
1596  id_match等于uid_eq(进程uid, 有效uid)且uid_eq(进程uid, 保留uid)且uid_eq(进程uid, 进程uid)且gid_eq(进程gid, 有效gid)且gid_eq(进程gid, 保留gid)且gid_eq(进程gid, 进程gid)
1602  如果非id_match且非ns_capable( user_ns the caps and keyrings are relative to. , Override max number of keymaps )则返回:负EPERM
1605  返回:security_task_prlimit(cred, tcred, flags)
调用者
名称描述
SYSCALL_DEFINE4