函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns true if current's euid is same as p's uid or euid,* or has CAP_SYS_NICE to p's user_ns.* Called with rcu_read_lock, creds are safe

函数原型:static bool set_one_prio_perm(struct task_struct *p)

返回类型:bool

参数:

类型参数名称
struct task_struct *p
158  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.(), pcred等于__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();(p)
160  如果uid_eq(进程uid, 有效uid)或uid_eq(有效uid, 有效uid)则返回:true
163  如果ns_capable( user_ns the caps and keyrings are relative to. , Allow setting cpu affinity on other processes )则返回:true
165  返回:false
调用者
名称描述
set_one_prioset the priority of a task* - the caller must hold the RCU read lock